You can do something like the following: Uri uri = Uri.parse("content://contacts/phones/1"); Cursor c = managedQuery(uri, null, null, null, null);
if (c.moveToFirst()) { do { // c.getString(1) is the phone # } while (c.moveToNext()); } -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 21, 8:19 pm, Ambarish Malpani <ambar...@gmail.com> wrote: > Hi Guys, > I have a URI for a phone number. Something like: > content://contacts/phones/687 > > How do I get the actual phone number from this URI? > > Thanks, > Ambarish --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---