I am currently selecting a contact from the phones contact book, and then saving the name with the following code:
int nameColumn = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME);
String name = cursor.getString(nameColumn)
I am wondering if there is a way to get the email of the contact in a similar fashion, something like CommonDataKinds.Phone.EMAIL
by that you mean you're using:
to have the user pick a contact from the device's contacts app?
If so, you can slightly change the picker code to become an email-picker instead:
Then in your
onActivityResult: