exposed beyond app through ClipData.Item.getUri()
Posted wp7ers
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了exposed beyond app through ClipData.Item.getUri()相关的知识,希望对你有一定的参考价值。
android7.0调用相机时出现新的错误:
android.os.FileUriExposedException: file:///storage/emulated/0/photo.jpeg exposed beyond app through ClipData.Item.getUri()
// android 7.0系统解决拍照的问题 StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); builder.detectFileUriExposure();
以上是关于exposed beyond app through ClipData.Item.getUri()的主要内容,如果未能解决你的问题,请参考以下文章
安卓7.0遇到 android.os.FileUriExposedException: file:///storage/emulated.. exposed beyond app through In
android 7.0拍照问题file:///storage/emulated/0/photo.jpeg exposed beyond app through ClipData.Item.getUri