公告
财富商城
积分规则
提问
发文
2019-01-02 23:43发布
虎瘦雄心在
It is possible to do it in one query?
As far as I know content uri of sim contacts is content://icc/adn
content://icc/adn
This is very easy! :)
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);
最多设置5个标签!
This is very easy! :)