Android应用程序可以在运行时请求附加权限吗? [英] Can Android apps request additinal permissions at runtime?

查看:139
本文介绍了Android应用程序可以在运行时请求附加权限吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个包含一些脚本支持的应用程序.此应用执行的脚本将来可能需要各种权限,但是很难预测哪些权限.

I'm working on an app which contains some scripting support. The scripts executed by this app might require all sorts of permissions in the future, but it's difficult to predict which ones.

是否有一种方法可以在运行时请求其他权限(就像iPhone应用程序有时一样),而不是在AndroidManifest.xml中预先指定所有权限?

Is there a way to request additional permissions at runtime (like iPhone apps sometimes do) instead of specifying them all in advance in AndroidManifest.xml?

推荐答案

根据 Android文档:

应用程序在以下位置静态声明 该应用程序,因此可以知道它们 预先在安装时进行,不会 之后更改.

The permissions required by an application are declared statically in that application, so they can be known up-front at install time and will not change after that.

这篇关于Android应用程序可以在运行时请求附加权限吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆