I’m really new in Android programming, so I have a simple question getting a phone number from contacts in my application. The method I want to implement is that the user clicks a button in my app and will be forwarded to the contacts. In contacts user has to click on a phone number and this number should be returned to a textfield. Is there a simple way to do this instead to implement it by ContentResolver?
Thanks for your answer.
Launch a a Pick contacts intent with startActivityForResult. In your case you just add the startActivityForResult call in the OnClick listener for the button.