Hi,

you can use GroupMembership attributes to remove a contact from a
group.
Here is an example :

                // Form an array specifying which columns to return.
                String[] projection = new String[] {
                                             GroupMembership.PERSON_ID,
                                             GroupMembership.NAME,
                                          };

                // Get the base URI for the People table in the Contacts content
provider.
                Uri contacts =  GroupMembership.CONTENT_URI;

                getContentResolver().delete
(GroupMembership.CONTENT_URI,GroupMembership.NAME+" = ? ",new String[]
{groupName});
                // where groupName is the group in which you want to delete
contacts


Best regards
Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to