I have name, phone number and E-mail infomation of a contact. I just want to insert the additional email and phone for the existing contact. My questions are
- How to find the contact is already existing or not?
- How to insert the values on the additional or secondary address option?
Thanks in Advance.
In the official document has new contancts api.
http://developer.android.com/reference/android/provider/ContactsContract.Data.html
First, look up raw contacts id with your criteria, such as name:
Second, use rawContactId to add an entry to contacts:
PS. don't forget the permissions: