Skip to content

How to tell if Contact has HOME or WORK email? #38

@ToysoftInc

Description

@ToysoftInc

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions