Deleting a contact by coding

Put your problem here if it does not fit any of the other categories.

Deleting a contact by coding

Postby adhavan » Thu Sep 09, 2010 8:12 am

hi,
i am trying to delete a contact,
my coding is
Code: Select all
String[] del= new String[1];
del[0]=con_id;
ContentResolver cr = getContentResolver();
String where = Data.CONTACT_ID+ "=?";
cr.delete(Data.CONTENT_URI, where, del);

its deleting the name and all the details,
but it not deleting the memory created for that contact(i.e) the deleted contact is listed as UNNAMED contact.
please help me
adhavan
Freshman
Freshman
 
Posts: 7
Joined: Thu Aug 26, 2010 1:03 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 12 guests