有什么办法请求允许编程? [英] Is there any way to ask permission programmatically?

查看:110
本文介绍了有什么办法请求允许编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法请求允许编程的机器人?我不希望所有的权限添加到AndroidManifest.xml中。那么,有没有询问是否允许在运行时的任何提示?

Is there any way to ask permission programmatically in android ? I don't want to add all permission to AndroidManifest.xml. So is there any dialog that asks for permission at runtime?

推荐答案

没有。用户需要被告知的权限而安装应用程序。问在运行时,用户将是一个安全隐患。

No. The user needs to be informed about the permissions while installing the application. Asking the user at runtime would be a security risk.

这篇关于有什么办法请求允许编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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