听云报错:
Caused by: android.os.FileUriExposedException: file:///storage/emulated/0/elan/elanw_1534939549960.apk exposed beyond app through Intent.getData()
解决方案:
1.将Uri的生成方式改为由FileProvider提供的临时授权路径,并且在intent中添加flag
2.在AndroidManifest.xml中的application标签中添加provider的配置
3.在res/xml中新建一个文件file_paths.xml
参考:
(1)https://www.cnblogs.com/netcorner/p/6542373.html
(2)https://blog.csdn.net/fxdiql/article/details/63748887