Android Run time Permissions in Android 6.0 (API level 23) best practices

后端 未结 1 1845
旧时难觅i
旧时难觅i 2020-12-19 21:04

Android Run time Permissions in Android 6.0 (API level 23) best practices

I have successfully added Permissions on the run time to my app using

These refre

1条回答
  •  遥遥无期
    2020-12-19 21:50

    1) The documentation you referenced says:

    If your app needs a dangerous permission, you must check whether you have that permission every time you perform an operation that requires that permission. The user is always free to revoke the permission, so even if the app used the camera yesterday, it can't assume it still has that permission today.

    That's why you have to request it every time.

    2) You can't store permissions. Android decides how long to remember a granted permissions.

    3) Yes, that's what the above quote is saying.

    4) You let Android manage the permissions. You don't do anything yourself except check or request them when you need them.

    0 讨论(0)
提交回复
热议问题