how to update android contacts
<p>hello
i am updating contacts name and number , the code for the above is </p>

<pre><code>Uri workUri = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_URI, id);
ContentValues values = new ContentValues();
values.clear();
values.put(ContactsContract.Contacts.DISPLAY_NAME,""+editname);
values.put(ContactsContract.CommonDataKinds.Phone.NUMBER,""+editno);
getContentResolver().update(workUri, values, null, null);
</code></pre>

<p>But it is not working.
Can anyone suggest me where i m wrong.
Thanks in advance</p>
