如何获得所有Android接触,但没有SIM上的触点
题
可以在一个查询中进行操作吗?
据我所知,Sim Contacts的内容是 content://icc/adn
解决方案
这很容易! :)
Cursor cursor = mContentResolver.query(
RawContacts.CONTENT_URI,
new String[]{RawContacts._ID,RawContacts.ACCOUNT_TYPE},
RawContacts.ACCOUNT_TYPE + " <> 'com.anddroid.contacts.sim' "
+ " AND " + RawContacts.ACCOUNT_TYPE + " <> 'com.google' " //if you don't want to google contacts also
,
null,
null);
不隶属于 StackOverflow