Hello Guys ...
i want to delete contact from group via code ..
i use this code but it delete contact from contacts and group and i need
from group only .
public static int _addToGroup(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);
}
any one can help me ...
--
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