gpt4 book ai didi

java - 有没有办法以编程方式请求许可?

转载 作者:IT老高 更新时间:2023-10-28 20:33:08 25 4
gpt4 key购买 nike

有没有办法在 android 中以编程方式请求权限?我不想将所有权限添加到 AndroidManifest.xml。那么是否有任何对话框在运行时请求权限?

最佳答案

Applications statically declare the permissions they require, and the Android system prompts the user for consent at the time the application is installed. Android has no mechanism for granting permissions dynamically (at run-time) because it complicates the user experience to the detriment of security.

关于java - 有没有办法以编程方式请求许可?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7517171/

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