[android-developers] Adding a contact

2010-09-16 Thread adhavan jeyachandran
hi all, i am beginner in android development.i am trying to add, delete and update contact information using my own application. when i try to add a contact, it is not getting added. please help me. My code is: ArrayList ops = new ArrayList(); int rawContactInser

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: http://de

[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 = Contacts.People.c