How can I programmatically join 2 contacts in android?

Viewed 2238

I need to know if is it possible to join two or more contacts (in a programmatic way, using the Contacts android API or something).

For example, I have a contact "Axel Rose" with an email account and a phone number, and I've noticed that some apps like whatsapp, Facebook and Skype are creating new contact entries for Axel Rose, instead of merging the existing one.

I can join contacts using the "Join feature" from the phone, but is there a programmatic way?

Thanks in advance.
Cristian.

1 Answers
Related