How to delete contact in android 2.1?

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

How to delete contact in android 2.1?

Postby jvivekd » Thu Jan 20, 2011 6:31 am

Code: Select all
  int i = getContentResolver().delete(Contacts.CONTENT_URI, Contacts.DISPLAY_NAME +"= 'Leo'",null);
    System.out.println("rows deleted "+i);


I am using above query. What is wrong with it because it is not deleting contact. If anybody know please help me.
jvivekd
Freshman
Freshman
 
Posts: 2
Joined: Mon Jul 05, 2010 3:12 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 18 guests