I\'m trying to develop a simple app using Android Scripting and Python.
Now, I have a phone number, and I want to find out which contact has that number. I can do a con
You might want to take a look at the ContactsContract data table. Query it with something like this:
Cursor c = getContentResolver().query(Data.CONTENT_URI,
new String[] {Data._ID, Phone.NUMBER, Phone.TYPE, Phone.LABEL},
Data.RAW_CONTACT_ID + "=?" + " AND "
+ Data.MIMETYPE + "='" + Phone.CONTENT_ITEM_TYPE + "'",
new String[] {String.valueOf(rawContactId)
}, null)