Reputation: 101
Does anyone know if there is a preferred method to find a contact's name in the Address book using their phone number as the key?
It seems that this should be a standard function since it is done in several places by the phone, such as in Recent Calls, Voice Mail list, Incoming Call ID, etc.
Thanks, Anthony
Upvotes: 3
Views: 1236
Reputation: 43452
Unfortunately the only way to do it is to enumerate through all the contacts, enumerate through each contacts phone numbers, and check each one until you find a hit. If you think there should be a built in way to query by phone number directly you should file a feature request.
Upvotes: 1