简体   繁体   中英

how to get phone number from my Contacts on android programing

i have EditText and button on my form.

how to do this:

when i press the button i want to open all my Contacts,

and when i pick one - i what that his phone number will be in the EditText

thanks in advance

In this post you can read contact list. How to call Android contacts list? there are some methods...

Then set EditText with contact list content

void setText (CharSequence text, TextView.BufferType type) Sets the text that this TextView is to display (see setText(CharSequence)) and also sets whether it is stored in a styleable/spannable buffer and whether it is editable.

:-)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM