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

问题描述

在 Eclipse 中,我们可以通过转到 AndroidManifest.xml->Permission-> 添加权限在 AndroidManifest.xml 中添加权限.

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

如何在 Android Studio 中添加权限?我们如何获得可以添加到 Activity 的所有权限的列表?

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

推荐答案

您只能手动输入它们,但内容辅助可以帮助您,因此非常简单.

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

添加这一行

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

并在点之后点击 + (或 + 在 Mac 上).如果你需要权限的解释,你可以点击 + .

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

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

08-04 03:54
查看更多