Android 6.0 dynamic permission Application Tutorial
PermissionManage
Project address: https://github.com/why168/AndroidProjects/tree/master/PermissionManage
introduce
If the device is running Android 6.0 (API level 23) or higher and the targetsdkversion of the application is 23 or higher, the application requests permission from the user at runtime.
If the device is running Android 5.1 (API level 22) or lower, and the targetsdkversion of the application is 22 or lower, the system will ask the user to grant permission when installing the application.
reference material
https://developer.android.google.cn/guide/topics/security/permissions.html
https://github.com/lovedise/PermissionGen
https://github.com/tbruyelle/RxPermissions
The following are the permissions that need to be applied separately, which are divided into 9 groups. As long as one permission application is successful in each group, the whole group of permissions can be used by default
The following are common permissions. You only need to apply in androidmanifest.xml
Sample code
The above is the whole content of this article. I hope the content of this article can bring some help to your study or work. At the same time, I also hope to support a lot of programming tips!