Android-ContactPicker icon indicating copy to clipboard operation
Android-ContactPicker copied to clipboard

How to tell if Contact has HOME or WORK email?

Open ToysoftInc opened this issue 7 years ago • 0 comments

When some contacts don't have WORK email address. The following will return the same email address.

Log.d("Contact", "Home="+contact.getEmail(ContactsContract.CommonDataKinds.Email.TYPE_HOME)); Log.d("Contact", "Work="+contact.getEmail(ContactsContract.CommonDataKinds.Email.TYPE_WORK));

Is there a why to tell if the contact has HOME or WORK email?

ToysoftInc avatar Feb 17 '18 15:02 ToysoftInc