I\'m trying to retrieve contact list with there name and phone numbers. I try following code:
// Get a cursor over every contact. Cursor cursor = getCon
Try the below code.
Cursor managedCursor = getContentResolver() .query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, new String[] {Phone._ID, Phone.DISPLAY_NAME, Phone.NUMBER}, null, null, Phone.DISPLAY_NAME + " ASC");