Doubt about the android studio contact permissions

0

in my application I am opening an intent to add a new contact this is the code ...

    Intent intent = new Intent(Intent.ACTION_INSERT);
    intent.setType(ContactsContract.Contacts.CONTENT_TYPE);

    intent.putExtra(ContactsContract.Intents.Insert.NAME, nombreEsc);
    intent.putExtra(ContactsContract.Intents.Insert.PHONE,  whaEsc.getText().toString().trim());

    startActivity(intent);

I would like to know if for this process it is necessary to add contact write permissions or something, as I am not performing a specific action, just opening an attempt and sending the data, I would like you to help me in this doubt. Is it necessary to add some permission?

    
asked by AndersonAcuña 16.10.2018 в 18:30
source

0 answers