I would like my code to update contact details (like name, phone number, email, organization details, etc) in the android contact book. I was successful in
I spent a lot of time trying to update the company and title information. The following now works for me.
Uri workUri = Uri.withAppendedPath(contactUri, android.provider.Contacts.Organizations.CONTENT_DIRECTORY);
values.clear();
values.put(android.provider.Contacts.Organizations.COMPANY, "company");
values.put(android.provider.Contacts.Organizations.TYPE, android.provider.Contacts.Organizations.TYPE_WORK);
values.put(android.provider.Contacts.Organizations.TITLE, "job title");
values.put(android.provider.Contacts.Organizations.ISPRIMARY, 1);
getContentResolver().insert(workUri, values);