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.createPersonInMyContactsGroup(getContentResolver(),values); Uri newContact = Uri.withAppendedPath(uri,People.Phones.CONTENT_DIRECTORY); values.clear(); values.put(People.Phones.TYPE,People.Phones.TYPE_WORK); values.put(People.Phones.NUMBER,workPhone); getContentResolver().insert(newContact, values); Since READ_CONTACTS could freak people out, is there any other way to insert a contact that requires only the WRITE_CONTACTS permission? Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en