How to choose a unique contact in android

Hi guys, I am stuck on how can I select only one contact that is repeated in the contact list. For example, if a user has a number (xxxx-xxxxxxx) twice in their contact list, I would like to select it only once. In short, pass any method GROUP BY NUMBER

in the request. I am using below method to select contacts

Cursor contacts = cr.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, null, null, " DISPLAY_NAME ASC");

      

+3
android contacts


source to share


No one has answered this question yet

See similar questions:

43
How to use LIMIT argument in SQLite Query with Android
4
How do I get the cursor with only single values?

or similar:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2510
How to persist android activity state by persisting instance state?
2284
How can I fix 'android.os.NetworkOnMainThreadException'?
2097
Is there a way to run Python on Android?
1858
"Debug certificate expired" error in Android Eclipse plugins
1844
What is "Context" on Android?
6
how to select unique contacts from android



All Articles
Loading...
X
Show
Funny
Dev
Pics