ITEEDU

Andoid2.X查询Notes注释

String noteWhere = ContactsContract.Data.CONTACT_ID + 
	" = ? AND " + ContactsContract.Data.MIMETYPE + " = ?";
String[] noteWhereParams = new String[]{
	id,ContactsContract.CommonDataKinds.Note.CONTENT_ITEM_TYPE};
Cursor noteCur = getContentResolver().query(
	ContactsContract.Data.CONTENT_URI, null, noteWhere, noteWhereParams, null);
while (noteCur.moveToNext()) {
	String note = noteCur.getString(
		noteCur.getColumnIndex(ContactsContract.CommonDataKinds.Note.NOTE));
}
noteCur.close();