Skip to content Skip to sidebar Skip to footer

ContentResolver.insert Returns Null

I sometimes have a problem when setting sounds as ringtones / notifications from inside an activity: ContentValues values = new ContentValues(); values.put(MediaStore.MediaColumns.

Solution 1:

Content providers don't support remote exceptions yet. I would look in logcat when you get the null Uri being returned. I suspect the media provider will be throwing some sort of exception.


Solution 2:


Post a Comment for "ContentResolver.insert Returns Null"