I'm trying to add a contact inside an app but the only working code
I've found requires READ_CONTACTS permission. Here's the code:
ContentValues values = new ContentValues();
values.put(Contacts.People.NAME, contactName);
Uri uri =
It is very hard to ensure that someone with write access can't also get data
back from the provider, so generally no.
Alternatively you could use the intent protocol to bring up the contacts
editor with your data to allow the user to be involved with adding it, using
SHOW_OR_ADD_CONTACT:
2 matches
Mail list logo