How to retrieve all contacts details from Content provider with single query?
问题 I need to read the contacts from device. The fields I required are ID , Display Name , Phone Number (All types) Email id (All types) and 'photo'. For this right now I am doing like this. 1 : First I am reading all the id s from ContactsContract.Contacts.CONTENT_URI; as shown below Uri contactsUri = ContactsContract.Contacts.CONTENT_URI; // Querying the table ContactsContract.Contacts to retrieve all the contacts String[] projection = {ID}; Cursor contactsCursor = mContentResolver.query