http://blog.youkuaiyun.com/hudashi/article/details/6896333
一个RawContacts对应一个联系人。
可通过一下语句查询:c = resolver.query(RawContacts.CONTENT_URI,
new String[] {RawContacts.CONTACT_ID},
RawContacts._ID + "=" + mainRawContactId, null, null);
Contacts是RawContacts的aggregat。
一个Contacts包含多个RawContacts(但只是link)。
可通过一下语句查询:
Cursor c = resolver.query(RawContacts.CONTENT_URI, new String[] {RawContacts._ID},
RawContacts.CONTACT_ID + "=" + contactId, null, null);
Contacts地址示例:
ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
本文深入解析Android联系人管理中RawContacts与Contacts的区别与查询方法,包括如何通过特定ID查询联系人数据。
821

被折叠的 条评论
为什么被折叠?



