1
我想更新联系人号码,但我不能在这里是我的代码更新联系电话
Uri uri = ContentUris.withAppendedId(Contacts.Phones.CONTENT_URI, Integer.parseInt(pID));
ContentValues values = new ContentValues();
values.put(People.Phones.TYPE, People.Phones.TYPE_MOBILE);
values.put(People.Phones.NUMBER, "4084444444");
values.put(ContactsContract.Data.RAW_CONTACT_ID,recNo);
//getContentResolver().update(uri, values, null, null);
int rows = getContentResolver().update(uri, values, null, null);
但行值为0 返回如果任何人能帮助我。我需要尽快解决它。 谢谢