添加在AndroidManifest.xml中权限的Andr​​oid的工作室? [英] Adding Permissions in AndroidManifest.xml in Android Studio?

查看:127
本文介绍了添加在AndroidManifest.xml中权限的Andr​​oid的工作室?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中,我们能够在AndroidManifest.xml中转到AndroidManifest.xml-> Permission->添加权限添加权限。

In Eclipse we were able to add permissions in AndroidManifest.xml by going to AndroidManifest.xml->Permission-> Adding permissions.

如何在Android的工作室添加权限?我们怎样才能得到所有我们可以添加到一个活动的权限列表?

How to add permissions in Android Studio? How can we get a list of all the permissions that we can add to an Activity ?

推荐答案

您只能手动输入它们,但内容辅助可以帮助你在那里,所以它是pretty的方便。

You can only type them manually, but the content assist helps you there, so it is pretty easy.

添加此行

<uses-permission android:name="android.permission."/> 

和打的 Ctrl +空格键的点后(或 CMD +空格的Mac上)。如果你需要一个解释的权限,你可以打的 CTRL + Q 的。

and hit ctrl + space after the dot (or cmd + space on Mac). If you need an explanation for the permission, you can hit ctrl + q.

这篇关于添加在AndroidManifest.xml中权限的Andr​​oid的工作室?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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