Hello,
I'm trying to update email address of a contact from phonebook. But I'm not able to update and getting an empty values error on :
updateValues.put(People.ContactMethods.KIND,android.provider.Contacts.KIND_EMAIL);
updateValues.put(People.ContactMethods.DATA, newEmail); updateValues.put(People.ContactMethods.TYPE,ContactMethods.TYPE_HOME); updateValues.put(People.ContactMethods.ISPRIMARY, 1); quickToast(updateValues.toString()); getContentResolver().update(People.CONTENT_URI, updateValues, People.ContactMethods._ID+"=?", new String[] {this.personIndex});
where updateValues is ContentValues and personIndex is index of person for whom I have to update. and I have also called updateValues.clear(); before putting al these values. With the same personIndex values I have updated phone number of the contact succesfully. But not able to update email address.