how to combine both DISPLAY_NAME and NUMBER in a customized CursorAdapter?
问题 I want to load all of my contacts' names and phone numbers into an AutoCompleteTextView's adapter. How can I achieve that? for example, when i type "G", it will show "Good, <111111>", "Good, <222222>" in its drop-down list. with the api demo, i can only put the DISPLAY_NAMEs in the result cursor. I don't know how to combine both names and numbers into one cursor. thanks! codes from the api demo: ContentResolver content = getContentResolver(); Cursor cursor = content.query(ContactsContract