[英]Android user permissions
I am new to android development and I am making a tic tac toe game for a project at the university. 我是android开发的新手,我正在为大学的一个项目制作井字游戏。
I know it is a simple game, but I need to add a permission to it so I can show that android has some kind of security. 我知道这是一个简单的游戏,但是我需要为其添加权限,以便可以证明android具有某种安全性。
I was thinking about the thing where the screen doesn't automatically locks, WAKE_LOCK or something like that. 我在考虑屏幕无法自动锁定,WAKE_LOCK之类的问题。
How to implement this ? 如何实施呢? Is there a way besides the one where you add the code to your xml file ? 除了将代码添加到xml文件的方法之外,还有其他方法吗?
I mean something that has to do with <user-permissions.... />
in manifest so a pop-up with accept can appear to the user ? 我的意思是与清单中的<user-permissions.... />
,以便用户可以看到带有accept的弹出窗口?
Is it enough to add that line to the manifest file or coding is required ? 将该行添加到清单文件是否足够或需要编码?
Thanks. 谢谢。
this is enough 这就够了
<manifest xlmns:android...>
...
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
</manifest>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.