Sunday, June 20, 2010

[android-developers] Pick a telephone number

Hi,

In my app I want to have the user selecting a telephone number from
the contacts list. How do I do that.

Selecting a contact is easy:
Intent intent = new Intent(Intent.ACTION_PICK);
intent.setType(ContactsContract.Contacts.CONTENT_TYPE);
startActivityForResult(intent, PICK_CONTACT);

Is there also an easy way to first see the contact list and then see
the telephone numbers of that contact and in the end return the
telephone number to my app that the user selected.

Thanks

Jaap

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment