[android-developers] Adding a contact without a READ_CONTACTS permission

2010-08-21 Thread Pinheiro
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 =

Re: [android-developers] Adding a contact without a READ_CONTACTS permission

2010-08-21 Thread Dianne Hackborn
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: