android - Can not update contact using ContentProvoider -


uri name=null;            string []whereargs={"sameer ahmad"};     name=uri.withappendedpath(people.content_uri,people.phones.content_directory);     cv1.put(people.name,"tofeeq ahmad");     int i1=0;     i1=getcontentresolver().update(name,cv1,"name=?",whereargs);     }     catch(exception e){         e.getmessage(); 

i trying update phone numder uri showing exception:cannot update//contacts/people/phone.same error in inserting.

  1. i want create shared data base accessible every application

have declared necessary permission in manifest?

<uses-permission android:name="android.permission.write_contacts" /> 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -