How To Query ContactsContract.CommonDataKinds.Phone On Android?
I'm trying to build a conversation list for SMS messages. Therefore I'm reading 'content://sms/conversations' and read the first few messages of each conversation to find the comm
Solution 1:
You should have a look at the recommended ContactsContract.PhoneLookup provider
A table that represents the result of looking up a phone number, for example for caller ID. To perform a lookup you must append the number you want to find to CONTENT_FILTER_URI. This query is highly optimized.
Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNumber));
resolver.query(uri, new String[]{PhoneLookup.DISPLAY_NAME,...
Post a Comment for "How To Query ContactsContract.CommonDataKinds.Phone On Android?"