开发者

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 on开发者_开发百科e - i what that his phone number will be in the EditText

thanks in advance


use this links May be it's useful for you.

http://www.java2s.com/Open-Source/Android/Contact/spelldial/org/ravelin/android/ContactAccessor.java.htm

http://developer.android.com/resources/samples/ContactManager/index.html

http://code.google.com/p/android-business-card/source/browse/trunk/android-business-card/BusinessCard/src/com/example/android/?r=3#android%2Fbusinesscard


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.

:-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜