Change:
String selection = ContactsContract.Contacts.DISPLAY_NAME + " IS NOT NULL";
to:
String selection = ContactsContract.Contacts.HAS_PHONE_NUMBER + "=1";

Title: Query Contacts database for contacts with phone number only
Rating: 100% based on 99998 ratings. 10 user reviews.
Post by 12:50 AM
Rating: 100% based on 99998 ratings. 10 user reviews.
Post by 12:50 AM
0 comments:
Post a Comment