I'm trying to figure out how to get a list of contacts, with phone
numbers, filtered by group using the new (Eclair and up) Contacts
API. Under the old API, it was a simple matter of:
----
Uri useUri = Uri.parse("content://contacts/groups/name/" + groupName +
"/members");
Cursor swankyCursor = managedQuery(useUri, null, null, null,
People.NAME + " ASC");
----
But that was back when contacts had a name and phone number in the
same table. Currently, even without the "filter by group"
requirement, it seems like in order to get a list of contacts and
their phone numbers, I have to run a query for contacts, and then a
seperate "what's this contact's phone number" for *every single
contact* - Is this true? Or is there a way to get it all in one
query?
Thanks!
-Alex
--
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