ok mr this is my code but this remove contact from groups and from contact
in other word it delete account ..
and i need to remove just from group .. please i need your help ..
public static int removeFromGroup(Context ctx, String personId, long
groupId) {
Uri uri=Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_URI,
personId);
return ctx.getContentResolver().delete(uri,
ContactsContract.CommonDataKinds.GroupMembership.GROUP_ROW_ID+"="+groupId,
null);
}
On Saturday, 2 June 2012 15:19:44 UTC+3, ala hammad wrote:
>
> Hi Guys ,
> i need to remove an contact or more from specific group via coding .. any
> one can help me ??
>
>
>
> thanks for your 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