Android 我已经编写了使用内容提供商更新我的联系人的代码,但它并没有更新我的联系人列表

Android 我已经编写了使用内容提供商更新我的联系人的代码,但它并没有更新我的联系人列表,android,Android,我已经编写了使用内容提供商编程更新联系人列表的代码,每当我尝试插入新电话号码时,它不会更新,而是显示以前的电话号码 作为参考,我粘贴了我写的代码 private void updateContact(String phone) { if (updateUri == null) { Toast.makeText(NativeContentProvider.this, "There is nothing to update, Please create a c

我已经编写了使用内容提供商编程更新联系人列表的代码,每当我尝试插入新电话号码时,它不会更新,而是显示以前的电话号码 作为参考,我粘贴了我写的代码

private void updateContact(String phone) {
        if (updateUri == null) {
            Toast.makeText(NativeContentProvider.this, "There is nothing to update, Please create a contact and then click update", Toast.LENGTH_LONG).show();
        } else {
            ContentValues newPhone = new ContentValues();
            newPhone.put(People.Phones.TYPE, People.TYPE_MOBILE);
            newPhone.put(People.NUMBER, phone);
            getContentResolver().update(updateUri, newPhone, null,null);
            Toast.makeText(NativeContentProvider.this, "Updated the phone number to: " + phone, Toast.LENGTH_SHORT).show();
            Log.i(getClass().getSimpleName(), "Updated the phone number");
        }
    }

我被卡住了

updateUri的价值是什么?
它必须识别要更新的记录。例如,updateUri可以是insert()返回的URI。Android开发者网站提供了一些关于如何构建URI的示例:

这是我在日志01-06 08:29:39.667:DEBUG/NativeContentProvider(502):updateURI中获取的值content://contacts/people/128/phones/674