Gali
Gali

Reputation: 14953

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

Upvotes: 0

Views: 1201

Answers (2)

cnt000
cnt000

Reputation: 71

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.

:-)

Upvotes: 0

Related Questions