Are you trying to get their names?  If so, the following query works
for me where the group number is grpid in my code:

final Cursor c = ctxt.getContentResolver().query(
Data.CONTENT_URI,
new String[] {ContactsContract.Contacts.DISPLAY_NAME },
GroupMembership.GROUP_ROW_ID + "=" + grpid + " OR " +
GroupMembership.GROUP_SOURCE_ID +"=" + grpid + " AND "
+                Data.MIMETYPE + "='" +
GroupMembership.CONTENT_ITEM_TYPE + "'",
null,
"DISPLAY_NAME");

If you need their numbers, it gets a little more complicated.  I hope
this helps.

Regards,
Beth

On Jan 19, 11:24 pm, jmf <[email protected]> wrote:
> I am using android 2.0.1.  I have a group id and I am trying to find
> all contacts in this group.  I have been banging my head against the
> wall on this for a while.  I can't seem to find a contentprovider that
> ties these two together.  There has to be a standard answer to this
> question...?  I hope.  Thanks for any and all help you might be able
> to provide.
> Jon
-- 
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