Android Marshmallow - change of rights status

Is there any way to detect permission status change in Android Marshmallow?

I did not see the broadcast for this ...

+8
android android-6.0-marshmallow android-permissions
source share
3 answers

Permissions cannot be changed in the middle of the application. If the permission is changed → the application restarts. There is no translation - you should check every time, but this is normal, only when your application starts.

+2
source share

Not. You will not receive any broadcast for her. Each time you call a function that needs permission, you need to check whether permission is granted or not.

Android provided a sample RuntimePermissions and MainActivity app. showCamera (View view) will give you an idea of ​​developing your methods. And check out Android Marshmallow 6.0: Request Permission to Better Design Your Application.

+1
source share

You must check the resolution every time you use. For your simplicity, you can use the PermissionAcceptor-master library.

0
source share

All Articles