In an Android app I've got a couple contacts from my contacts list. They can be either emails, phone numbers, or even other things. I now want to check which type it is and bind specific actions to them.
For example, if it is a type vnd.android.cursor.item/email_v2
, I want to send a POST message with just the email field, and if it is a type vnd.android.cursor.item/phone_v2
I want to send a POST message with just the phone field.
Any ideas how I could check this?