How can I select only one contact that is repeated in contacts list?
For example, if a user has a number (xxxx-xxxxxxx) two time in his contact list, I would like to select it only one time. In short, any method to pass GROUP BY NUMBER
in query. I am using below method to select contacts:
Cursor contacts = cr.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, null, null, " DISPLAY_NAME ASC");