Change:
String selection = ContactsContract.Contacts.DISPLAY_NAME + " IS NOT NULL";
to:
String selection = ContactsContract.Contacts.HAS_PHONE_NUMBER + "=1";
![Query Contacts database for contacts with phone number only thumbnail](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS-5s9ZFjHvO94xSQGLVLEaPmXPFbe8S1_HQcLyM1ZtIRlIpSecq6lB-g_9_rHwPbJSxFov2ZyBrIM4Pyj8fg16W7JakenCuuALTGmfSIRJJL1FT3MzS_hADhicbagwQDIUbW1Y4Y3qXA-/s72-c/AndroidQueryContacts_02.png)
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