1

Android find contact by name unrelated to Charcase

view story
linux-howto

http://stackoverflow.com – I want to make a code which will find a contact and call him either if the contact is equals to the search or if it is in low case or up case This is the code i currently use ContentResolver cr = getContentResolver(); Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null, "DISPLAY_NAME = '" + "contactname" + "'", null, null); if (cursor.moveToFirst()) { String contactId = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID)); Cursor phones = cr.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, ContactsCont (HowTos)