galleryfinal打开相机程序崩溃

孤星破军 发布于 2016/06/09 10:59
阅读 1K+
收藏 0

@彭建波 你好,想跟你请教个问题:

最近发现使用galleryfinal打开相机

GalleryFinal.openCamera(REQUEST_CODE_CAMERA, mOnHanlderResultCallback);

程序会崩溃错误为:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.admin.ybgj/cn.finalteam.galleryfinal.PhotoEditActivity}: java.lang.SecurityException: Permission Denial: starting Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 cmp=com.htc.camera/.CameraServiceEntry clip={text/uri-list U:file:///storage/emulated/0/DCIM/GalleryFinal/IMG20160609105632.jpg} (has extras) } from ProcessRecord{9dcc17 21294:com.example.admin.ybgj/u0a542} (pid=21294, uid=10542) with revoked permission android.permission.CAMERA




 Caused by: java.lang.SecurityException: Permission Denial: starting Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 cmp=com.htc.camera/.CameraServiceEntry clip={text/uri-list U:file:///storage/emulated/0/DCIM/GalleryFinal/IMG20160609105632.jpg} (has extras) } from ProcessRecord{9dcc17 21294:com.example.admin.ybgj/u0a542} (pid=21294, uid=10542) with revoked permission android.permission.CAMERA



加载中
返回顶部
顶部