Dimoge
Results
1
comments of
Dimoge
> 来一个简单粗暴的解决办法: > > http://blog.csdn.net/huangxiaoguo1/article/details/52830015?locationNum=2&fps=1 > > 在Application的onCreat()方法中添加以下代码: > > ``` > // android 7.0系统解决拍照的问题 > StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); > StrictMode.setVmPolicy(builder.build()); > builder.detectFileUriExposure(); > ``` 亲测有效,Android Q