My task that i want to do with ContactsContract API of android 2.0 to update
the details of the particular contact.
I am able to do that work with android 1.6 with old api.but facing lots of problem with android 2.0 api for contact
I use following way to update name but not get any result
Please share your finding on updating the contact
Using java Syntax Highlighting
- ArrayList<ContentProviderOperation>
- operations =
- new ArrayList<ContentProviderOperation>();
- operations.add(ContentProviderOperation.newUpdate(
- ContactsContract.Data.CONTENT_URI).withSelection(
- Data.CONTACT_ID + "=?", new String[]
- { id }).withValue(
- StructuredName.GIVEN_NAME, "John").withValue(
- StructuredName.FAMILY_NAME,
- "Abraham").build());
- getContentResolver().applyBatch(ContactsContract.AUTHORITY,
- operations);
Parsed in 0.032 seconds, using GeSHi 1.0.8.4

