亲测,Android7.0申请动态权限也不是崩,不能进行拍照。崩溃原因:
android.os.FileUriExposedException: file:///storage/emulated/0/20170426154759_img.jpg exposed beyond app through ClipData.Item.getUri()
解决方法:
//android7.0相机设置
if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.N){
StrictMode.VmPolicy.Builder builder=new StrictMode.VmPolicy.Builder();
StrictMode.setVmPolicy(builder.build());
}