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();
我正在尝试通过 URi 更新电话号码,但它Exception:Cannot Update//Contacts/people/phone.
在插入时显示相同的错误。
- 我想创建可以从每个应用程序访问的共享数据库