1.android N开始,必须用fileprovider来获取uri中的文件。
2.android O开始,安装apk必须增加权限 request_install_package
3.context.getSystemService,有时会持有这个context。所以应该用Application的context,LayoutInflater的除外,这个是与theme相关的。
Which context should i use in android?
https://medium.com/@ali.muzaffar/which-context-should-i-use-in-android-e3133d00772c