Android marshmallow request permission?

后端 未结 24 2052
無奈伤痛
無奈伤痛 2020-11-21 06:40

I am currently working on an application that requires several \"dangerous\" permissions. So I tried adding \"ask for permission\" as required in Android Marshmallow(API Lev

24条回答
  •  [愿得一人]
    2020-11-21 07:27

    There is a good library that can be used in case permissions need to be asked when permission is needed by a background service. Although a limitation of library is that it can not be used to just determine whether permissions are currently given to the app or not. It always asks the user if app doesn't already have them.

    Do give it a try as it makes life simpler: Android Permissions

提交回复
热议问题