Android7.0及以上版本拍照报错

exposed beyond app through Intent.getData(),或FileUriExposedException

解决方法:

在Application的onCreat()方法中添加以下代码:

// android 7.0系统解决拍照的问题

StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();

StrictMode.setVmPolicy(builder.build());

builder.detectFileUriExposure();

exposed beyond app through Intent.getData(),或FileUriExposedException相关推荐

  1. Android exposed beyond app through Intent.getData()

    前言 今天在做项目功能的时候遇到一个bug exposed beyond app through Intent.getData() 在项目中点击文件路径跳转过去,编译器报错android os Fil ...

  2. AndroidStudio:apk exposed beyond app through Intent.getData()

    今天做app版本升级,发现下载好了之后无法自动安装,检查发现,APP已经下载到了本地,就是最后安装的时候捕捉到了异常,根据异常(apk exposed beyond app through Inten ...

  3. ionic android升级错误 exposed beyond app through Intent.getData()

    应用内自动升级,下载安装包后抛出异常,先贴个错误 Log: android.os.FileUriExposedException: file:///storage/emulated/0/aiyou.a ...

  4. app内执行apk安装报错:exposed beyond app through Intent.getData()

    文章目录 一. 问题: app内执行apk安装报错:exposed beyond app through Intent.getData() 二. 解决方法 1. AndroidManifest中增加F ...

  5. 解决Android 7.0及以上版本文件暴露异常exposed beyond app through Intent.getData()的方法

    转载:https://www.icode9.com/content-4-619191.html 我们在APP升级的时候进行下载安装,却在Android 7.0及以上版本会报错 android.os.F ...

  6. android.os.FileUriExposedException:file:///storage/emulated/0/test.txt通过Intent.getData()在应用程序之外公开

    本文翻译自:android.os.FileUriExposedException: file:///storage/emulated/0/test.txt exposed beyond app thr ...

  7. FileUriExposedException: file:////XXXXXXXX g exposed beyond app through ClipData.Item.getUri()问题的解决

    FileUriExposedException: file:XXXXXXXX g exposed beyond app through ClipData.Item.getUri()问题的解决 前段时间 ...

  8. 安卓开发拍照时闪退遇到问题: file:///storage/emulated/0/0.jpg exposed beyond app through ClipData.Item.getUri()

    问题描述: 打开摄像头拍照时程序闪退,错误提示如下: android.os.FileUriExposedException: file:///storage/emulated/0/RadioDirec ...

  9. FileUriExposedException: file:///storage/emulated/0/001/1612321465868.mp4 exposed beyond app through

    我在调用系统相机的时候报错 private void openCamera() {Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE) ...

最新文章

  1. 修改docker默认网桥
  2. Bash For Loop Examples for Your Linux Shell Scripting--ref
  3. php mysql 地理位置_MySQL版中国省市区地址地区信息数据表
  4. ajax请求到参数太大获取参数失败问题,Ajax请求参数较长导致请求失败
  5. 基于自然语言处理的需求到类图转化的文献调查
  6. java用信号量写理发师_课内资源 - 基于Java实现的生产者与消费者问题、读者写者问题、哲学家进餐问题、理发师睡觉问题、医生看病问题...
  7. C 标准库中输出到字符串、到文件的相关函数
  8. 用了很多群控与云控,微信还是慢慢死掉了
  9. SAP库存查询MB52报表如何设置为ALV格式显示?
  10. 冰点还原容易出现的问题总结
  11. 解决ubuntu系统使用vim时方向键乱跳问题
  12. Objective-C学习笔记(1)——OC的基本概念和类
  13. smaa github iryoku
  14. 【2022】合肥市市赛冲刺【小学组】
  15. 计算机考试显示延时一分钟,电脑显示延迟解决方法教程
  16. RKMPP库快速上手--(二)MPP关键配置
  17. 论文精读:Selective Convolutional Descriptor Aggregation
  18. MobileNetV3基于NNI剪枝操作
  19. 动力节点 SpringMVC P44-53
  20. 嵌入式作业STM32采用串口DMA方式发送数据

热门文章

  1. 前端学习(2880):数据代理和劫持
  2. 前端学习(2856):简单秒杀系统学习之定时器循环显示
  3. 工作308:控制change
  4. 前端学习(2763):基本的数据绑定
  5. 前端学习(1124):思考题
  6. 第九十期:哪种人是软件设计中的稀缺型人才?
  7. 第六十五期:央行万字工作论文:区块链能做什么、不能做什么?
  8. 第四十九期:化繁为简的五种码农必备工具
  9. 第四十八期:只因写了一段爬虫,公司200多人被抓!
  10. centos7 安装cacti