I have an EditText and a Button, the button has an OnClickListener that opens the contacts list with startActivityForResult(new Intent("android.intent.action.PICK", android.provider.ContactsContract.Contacts.CONTENT_URI), 1)
.
If the user click on the button, it opens the contact so that they can select one, now I want to import that number to the EditText. Is there a way to do that?
Edit: The both the EditText and the button belong to a Fragment.