Change:
String selection = ContactsContract.Contacts.DISPLAY_NAME + " IS NOT NULL";
to:
String constraint = "Lau";
String selection = ContactsContract.Contacts.DISPLAY_NAME + " LIKE '%" + constraint + "%'";

Title: Query Contacts database, search with selection of LIKE cause.
Rating: 100% based on 99998 ratings. 10 user reviews.
Post by 7:23 AM
Rating: 100% based on 99998 ratings. 10 user reviews.
Post by 7:23 AM
0 comments:
Post a Comment