Hello:
 I am trying to query a contact group for retrieve its members using

Cursor cc = cr.query(GroupMembership.CONTENT_URI, null,
"group_id=?",new String[]{groupID, null);

However it can only find the contact which i manually added by code as
following:

Contacts.People.addToGroup(content, personId, groudId);

Other contacts in the groups (including the "system group", "starred")
cannot be found.

However when i use the group name as the" selection as following,.it
works fine. (But i think using the "name" as the selection is not a
best way for database)

Cursor cc = cr.query(GroupMembership.CONTENT_URI, null, "name=?",new
String[]{groupName}, null);

Is it a bug for sdk 1.6 r3?? or there is something incorrect in my
code

Thanks for help! :)

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