添加在AndroidManifest.xml中权限的Andr​​oid的工作室?权限、工作室、xml、AndroidManifest

2023-09-05 06:20:25 作者:回忆渗出苦涩

在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.