How to get contacts from contact list in Android? using Contact Provider -


i had fetch contact list android using contact provider, showing me duplicate entries. so, how can filter duplicate entries.

for example, abcd - 123467890, 1234567890, 1234567890

how filter duplicate phone number using contact provider?

and can fetch phone memory contact list?

it obvious duplicate contacts when fetch them. since, same contact (same number, different name or different number, same name) might stored in either in google contacts, phone contacts or in sim contacts.

in order eliminate duplicates in application, use local database (sqlite provided android) , make phone number unique, no duplicates stored.

for more information refer post how android contacts without on sim

following dalma racz comment, lead solution.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -