Open ToysoftInc opened 6 years ago
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?
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?