exposed beyond app through ClipData.Item.getUri()

欠伸展肢体,吟咏心自愉。这篇文章主要讲述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 = newStrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); builder.detectFileUriExposure();

【exposed beyond app through ClipData.Item.getUri()】 

    推荐阅读