0
I’m creating an app where the user will click a EditText which will lead to the system’s contact list, where it will click and the contact name will appear on EditText. However, it is precisely to take this contact and fill the EditText that I’m stuck. My code is this:
Comvoce3 = (EditText) findViewById(R.id.Comvoce);
Comvoce3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intentList = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(intentList, RESULT_PICK);
Comvoce3.setHint("");
}
});
Enter the code, not the code image if you want to get an answer here in the OS.
– viana
I put, Thank you!
– Danillo Melo