0

I see in a app a contactpicker Intent that show for a contact that have multiple phone number like this:

--------------------
Friend 1
Mobile 555567777777
--------------------
Friend 2
Mobile 555567777777
Work cc555567777777
Home 44564646
--------------------

I can't find a way to do this only to retrieve one contact and query phone numbers after.

How I can call the intent to do in this way?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Rolando Corratge Nieves
  • 1,233
  • 2
  • 10
  • 25
  • Do you mean you want your contact picker to just show "Friend 1" and not "Friend 2" ? – Bajji Aug 26 '15 at 22:00
  • no show all number of all contacts sorry for my english, normaly the tutorials says retrive one contact , interact in it to select a phone number, I see app doin this to direct select the wanted number – Rolando Corratge Nieves Aug 26 '15 at 22:03
  • Check this http://stackoverflow.com/questions/8612531/how-can-i-choose-a-phone-number-with-androids-contacts-dialog – Ankur Kumar Sep 07 '15 at 11:25
  • The aswers is something like this http://stackoverflow.com/questions/4993063/how-to-call-android-contacts-list-and-select-one-phone-number-from-its-details-s#answer-6020669 – Rolando Corratge Nieves Sep 07 '15 at 19:57

1 Answers1

0

You could do something like this:

Intent intent = new Intent();
    intent.setClassName("com.android.contacts","com.android.contacts.activities.PeopleActivity");
    startActivity(intent);
Actiwitty
  • 1,232
  • 2
  • 12
  • 20