1. Download our Official Android App: Forums for Android!

Apps Can't remove contact from group in 1.6

Discussion in 'Android Development' started by een0616, Aug 22, 2010.

  1. een0616

    een0616 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Aug 22, 2010

    Aug 22, 2010
    1
    0
    5
    Hi everyone

    I can remove a contact from a group in 1.5 with following code:

    getContentResolver().delete{GroupMemberShip.CONTENT_URI,GroupMemberShip.PERSON_ID='userid',null}

    but in 1.6,I got the error message :

    UnSupportedOperationException:Cannot delete the URL:content://contacts/groupmembership

    How can I remove the contact from group in 1.6?
     

    Advertisement

Share This Page

Loading...