I need to search the DISPLAY_NAME field 1st and last name and have tried this code:
ContentResolver cr = getContentResolver();
Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI, null, ContactsContract.Contacts.DISPLAY_NAME + " like %?%", new String[]{ results.get(0) }, null);
if (cur.getCount() > 0) {
I get error in log cat from the %'s in the cursor line. Any advise would be appreciated. ??