I am trying to create a program. There is also a function I want to ask. I have a button and a textview. I want that when I press the button, my phonebook is opened so that I could select a contact number. After finished, the selected contact number will be displayed in the textview. Currently, I have no idea how to do that.
Share
on the onClick call this..
override the
onActivityResultmethod, useCursorto move to the selected contact and display it in your textviewThis could look something like this…