1

In my app I have textView where the user can insert phone number and I want to open the native address and add this number to existing contact,

How can I implement this ?

I manage to open new contact with this:

Intent intent = new Intent(Intent.ACTION_INSERT);
intent.setType(ContactsContract.Contacts.CONTENT_TYPE);
intent.putExtra(ContactsContract.Intents.Insert.PHONE, phoneNumber);

but my requirement is to also support to add this number for existing contact

and_dev
  • 1,483
  • 3
  • 14
  • 17

0 Answers0