I am populating contact list details to list view successfully. 
My code: 

```
  String order = ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME + " ASC";
  Cursor   curLog =  getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,null,null,order); 

```

**How can I avoid the duplicate data In List view as the contact details is repeating if its joined contact i.e. joined with both phone and Google?**. The screen is like ![enter image description here](https://i.stack.imgur.com/K6eKs.png)

I want to select programmatically only 1 name not the both? Any Idea how I can select?