Unknown URI Error in insertImage

十年热恋 提交于 2019-12-05 06:37:04

I have had similar problems when the directory DCIM/Camera didn't exist on the sdcard. Creating the directory (and having the permission) has resolved a similar problem for me.

I found that it was an emulator problem. I had not set up the emulator correctly. To fix this what I did was to open the android Virtual device manager, edit the AVD and add a SD Card size. Once I have done that I start the AVD and take a picture. After I have done that, it started working.

It worked on Galaxy Nexus. So it might be Emulator problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!