scimitar wrote:
> I'm always getting null as the return uri for
> getContentResolver().insert(). Why is this?
> 
>         ContentValues mv = new ContentValues();
>         mv.put(People.NAME, "foo");
>         mv.put(People.NUMBER, "54547");
>         Uri u = getContentResolver().insert(People.CONTENT_URI, mv);

Does your application request the WRITE_CONTACTS permission for 
modifying the contacts?

http://code.google.com/android/devel/security.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
The Busy Coder's Guide to Android Development -- coming in June 2008!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to