Last exercise "Query Contacts database" for all contacts. If you want to query contacts with phone number only, simple change the selection:
Change:
String selection = ContactsContract.Contacts.DISPLAY_NAME + " IS NOT NULL";
to:
String selection = ContactsContract.Contacts.HAS_PHONE_NUMBER + "=1";
Home »
» Query Contacts database for contacts with phone number only
Query Contacts database for contacts with phone number only
Written By MR HARI on Senin, 26 November 2012 | 00.50
Related Articles
If you enjoyed this article just click here, or subscribe to receive more great content just like it.

0 komentar:
Posting Komentar