I am using this in Android 1.x:
final String[] proj = new String[] {
Contacts.People._ID,
Contacts.People.STARRED,
Contacts.People.NAME
};
final String selection = null;
Uri uri = Uri.parse("content://contacts/groups/system_id/"
+ Groups.GROUP_MY_CONTACTS + "/members");
Cursor people = context.getContentResolver().query(
uri,
proj,
selection,
null,
Contacts.People.DEFAULT_SORT_ORDER);
and people who have contacts imported from Outlook are missing those
contacts.
Why is this so under-documented, with access provided through textual
URIs and database calls?
Can someone show me a definitive code blurb that gets all the contacts
in the Android contact panel and NOT those crufty pretend contacts?
Thanks in advance.
tone
On Feb 25, 1:49 am, Dmitri Plotnikov <[email protected]> wrote:
> I believe the system group "my contacts" was used for that purpose.
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.