Hi all,
I'm looking for a way to search all phones of all contacts for a phone number. Background is that I want to save the id of the contact with that number in the database of my app. I just don't know how to make the query :-S. Maybe someone can help me with this?!
So I finally figured it out.. here's the query:
Cursor c = mContext.getContentResolver().query(Phones.CONTENT_URI, new String[] {Phones.PERSON_ID}, Phones.NUMBER + " = '" + pPhoneNumber + "' OR " + Phones.NUMBER_KEY + " = '" + pPhoneNumber + "'", null, null);
Regards,
Marcel[b]



