Ok, from
http://stackoverflow.com/questions/8352843/i-want-to-delete-contact-groupcreated-at-installation-time-at-the-time-of-my-a?rq=1

ContentValues values = new ContentValues();
values.put(ContactsContract.Groups._ID, 4444);
getContentResolver().delete(ContactsContract.Groups.CONTENT_URI,values.toString(),null);




On 9 June 2012 12:32, ala hammad <[email protected]> wrote:

> 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




-- 
Magnetic Door Alarm
app<https://play.google.com/store/apps/details?id=com.nds.magneticdooralarm>is
now available in Google Play

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