gpt4 book ai didi

运行时未请求 Android M "Runtime Permissions"?

转载 作者:搜寻专家 更新时间:2023-11-01 07:51:35 24 4
gpt4 key购买 nike

当我最近发现(至少在我 friend 的 Ggalaxy S6 上)时,我正准备在 android M 上获得运行时权限,仍然必须在安装时确认所有权限(Google Play)。他有 Android M,当然你现在可以在应用程序设置中撤销权限,但最初当你在安装后启动应用程序时,一切都会被授予。

我有点惊讶,这不是我期望的“运行时权限”。

有什么提示吗?我错过了什么吗?

最佳答案

根据doc :

This lesson describes how you implement permissions requests on apps that target API level 23 or higher, and are running on a device that's running Android 6.0 (API level 23) or higher. If the device or the app's targetSdkVersion is 22 or lower, the system prompts the user to grant all dangerous permissions when they install or update the app.

运行时权限只有更新目标SDK到23才会生效

关于运行时未请求 Android M "Runtime Permissions"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34339623/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com