how to update the values in android contacts
<p>I am using  update method  to update my contact but when i go to my contact list to see the udpated number it shows me the previous number store , whats wrong with code can any sort it , how to udpate the contacts   </p>

<p>ContentValues newPhone = new ContentValues();</p>

<pre><code>        updateUri=Uri.withAppendedPath(uri, People.Phones.CONTENT_DIRECTORY);

        newPhone.put(People.Phones.TYPE, People.TYPE_MOBILE);
        newPhone.put(People.NUMBER, phone);
        //newPhone.clear();
        Log.v("--- PHONE NUMBER ","---VALUE ---- "+phone);
        //getContentResolver().update(updateUri, newPhone, null,null);
        getContentResolver().insert(updateUri, newPhone);

        Toast.makeText(NativeContentProvider.this, "Updated the phone number to: " + phone, Toast.LENGTH_SHORT).show();
        Log.i(getClass().getSimpleName(), "Updated the phone number");
</code></pre>
