Android Contacts - Update Note
Im using the new'ish API to insert/update contacts on my phone and I'm using this method to updates them.. String selectArgs1 = Data.CONTACT_ID + '=? AND ' + Data.MIMETYPE + '=''
Solution 1:
String selectArgs1 = Data.CONTACT_ID + "=? AND " + Data.MIMETYPE + "= ? ";
String[] selectArgs2 = new String[]{contactId, "vnd.android.cursor.item/note"};
operationList.add(ContentProviderOperation.newUpdate(Data.CONTENT_URI)
.withSelection(selectArgs1, selectArgs2)
.withValue(ContactsContract.CommonDataKinds.Note.NOTE, "hello@hi.com")
.build());
try this code...
Post a Comment for "Android Contacts - Update Note"