ContentResolver cr = this.getContentResolver();
ContentValues values = new ContentValues();
values.clear();
String noteWhere =
ContactsContract.Data.CONTACT_ID +
" = ? AND " +
ContactsContract.Data.MIMETYPE +
" = ?";
String[] noteWhereParams = new String[]{id,
ContactsContract.CommonDataKinds.Note.CONTENT_ITEM_TYPE};
// Constant Value: "vnd.android.cursor.item/note"
values.put(CommonDataKinds.Note.NOTE, "NEW NOTE HERE!!!!");
cr.update(ContactsContract.Data.CONTENT_URI, values, noteWhere, noteWhereParams);
Cursor noteCur = cr.query(ContactsContract.Data.CONTENT_URI, null, noteWhere, noteWhereParams, null);
if (noteCur.moveToFirst())
{
String note = noteCur.getString(noteCur.getColumnIndex(ContactsContract.CommonDataKinds.Note.NOTE));
}
noteCur.close();