android 7.0拍照问题file:///storage/emulated/0/photo.jpeg exposed beyond app through ClipData.Item.getUri

壮心未与年俱老,死去犹能作鬼雄。这篇文章主要讲述android 7.0拍照问题file:///storage/emulated/0/photo.jpeg exposed beyond app through ClipData.Item.getUri相关的知识,希望能为你提供帮助。
在Application的onCreat()方法中添加以下代码: 
// android 7.0系统解决拍照的问题
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
【android 7.0拍照问题file:///storage/emulated/0/photo.jpeg exposed beyond app through ClipData.Item.getUri】StrictMode.setVmPolicy(builder.build());
builder.detectFileUriExposure();
 
 
出处http://blog.csdn.net/qq_23179075/article/details/70314473

    推荐阅读