Android中调用系统函数查找联系人
16lz
2021-01-23
Android中调用系统函数查找联系人,具体代码:
Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEARCH);intent.setPackage("com.android.contacts"); //设置查找包intent.putExtra(SearchManager.QUERY, keyword); //传入查找的keywordstartActivity(intent);
参考链接: http://www.eoeandroid.com/thread-73636-1-1.html
更多相关文章
- Android getActionBar() 函数总是返回 null 的解决
- Android读取联系人并按照拼音排序
- 利用BeautifulSoup的find_all()函数查找某个标签且该标签某属性
- 自定义android用户控件,使用回调函数实现自定义事件
- 在Android里添加自己的log函数
- 解剖Android联系人之三,基于2.1
- 解决eclipse中android添加重载函数时参数为arg0,arg1的问题
- strcpy函数在android中的实现
- Android 保存联系人,包括部门\职位\传真\地址\照片