android: How to pick contacts phone num -


i need pick contact phone num, , used this...

 intent intent = new intent(intent.action_pick, contactscontract.contacts.content_uri); startactivityforresult(intent, get_contact_from_result); 

but, when contact has multiple numbers, pick activity list 1 contact, , can select 1 phone.

what can display contacts' every phone num?

you can ask contact picker show 1 contact per phone, contact multiple phones appear several times:

intent intent = new intent(intent.action_get_content); intent.settype(contactscontract.commondatakinds.phone.content_item_type); startactivityforresult(intent, pick_contact); 

Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -