I've noticed that if you query the groups database with only the
Account name selected:
i.e.: String where = ContactsContract.Groups.ACCOUNT_NAME + " =='" +
toAcct + "'";

The first record returned is the "System Group: My Contacts" group (at
least that's the case on my Droid).
Can we assume that the system group "My Contacts" is always the first
row in the Groups table?
I don't want to make random assumptions but I don't see any
documentation that explains how to select this specific group using
the new 2.0 ContactsContract API.

-Jake

> I'm adding a new contact using the 2.0 ContactsContract APIs and I was
> just wondering if this is a safe way to get the "My Contacts" group to
> set the group membership for my new contact. Or is there a better more
> standard way to get it?

-- 
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

Reply via email to