![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
兼容问题
文章平均质量分 78
SelenaAction
这个作者很懒,什么都没留下…
展开
-
android6.0/7.0以上拍照崩溃or闪退,FileUriExposedException
1、问题 ① SecurityException ② FileUriExposedException 2、原因及方法 (1):SecurityException无法调起相机 原因: 权限问题 方法:android6.0以上,需要动态获取camera权限,否则无法调起系统相机。【注意,另外的读写权限不可忽略,也需要动态获取】 priva...原创 2018-09-19 11:55:29 · 1817 阅读 · 0 评论 -
android 8.0适配 —— app自动更新问题
android7.0适配参见链接 Pro1:安装时解压缩错误 原因: setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)和addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)顺序问题. 如果setFlags在addFlags之后,会将之前的flag清掉,导致读取权限获取不到,进而解压缩出错。 final Fil...原创 2019-06-24 10:34:01 · 879 阅读 · 0 评论 -
android7.0适配——app版本更新
android8.0适配链接 以下代码可以直接使用 第一步,配置清单文件 <provider android:name="android.support.v4.content.FileProvider" android:authorities="com.hibabypsy.provider" android:exported="false" ...原创 2017-11-08 15:10:21 · 319 阅读 · 0 评论