如题,谢谢
解决方案 »
- android中如何实现背景图的滚动
- 求android下载文件方法,在线等
- android gallery 中的每个item可以自定义布局吗?
- 怎么在ListView上显示Bitmap或者Drawable类型的图片
- 大家帮小菜我解决一个问题 急 急 急!!
- android安装问题
- Android 应用的自动升级、更新模块的实现
- 'launching MyFirstApp' has encountered a problem.
- 微信公众号可以实现签到加分,抽奖减分的积分系统吗?
- android 华为手机广播注册过多!
- Android 系统自带日历,如何不注册Exchange账户就可以直接使用。也就是舍弃同步功能,只想正常使用其自带日历功能。有什么好的思路。
- 全盘搜索然后运行搜索的程序
那就换一个字段试试。
http://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Phone.html
这种解决方案随便搜搜就有了吧~
Cursor cursor = mContentResolver.query(
RawContacts.CONTENT_URI,
new String[]{RawContacts._ID,RawContacts.ACCOUNT_TYPE},
RawContacts.ACCOUNT_TYPE + " <> 'com.anddroid.contacts.sim' ",// =/= 条件
null,
null);
具体,参见:http://stackoverflow.com/questions/4338563/how-to-get-all-android-contacts-but-without-those-which-are-on-sim