I'm getting Cursor with RAW_CONTACTS for person in my app.
How can i use this data to start an Intent to communicate with this person via one of selected raw-contacts?
For example, one contacts has several raw-contacts: phone, whatsapp, viber etc. When i click whatsapp raw_contact, app should start WhatsApp to communicate with selected person.
Uri uri = Uri.parse("content://com.android.contacts/data/" + rawContactId); Intent i = new Intent(Intent.ACTION_VIEW); i.setDataAndType(uri, rawContactMimetype);