1

I am trying to find a contacts phone number by their name. I was trying to use this tutorial but it isn't working well. I am having a hard time actually locating the name from the number part. I do not have errors. Is there an easier way to do this? Here is the tutorial I have been following. Tutorial! I have also investigated this link however I am having a hard time finding a specific contact and not just all of them.

Community
  • 1
  • 1
Kyle
  • 2,339
  • 10
  • 33
  • 67
  • I think its already found check this [link][1]. [1]: http://stackoverflow.com/questions/3079365/android-retrieve-contact-name-from-phone-number – Viswanath Lekshmanan Mar 25 '13 at 12:51
  • 3
    Thanks for the response. I see that they were able to use just two lines to find the name associated with a number. How can I do the reverse? – Kyle Mar 25 '13 at 13:06
  • I used this code, but how do I actually use the query results? cr.query(uri,new String[]{PhoneLookup.NUMBER}, null, null, null); – Kyle Mar 25 '13 at 14:18

0 Answers0