Manifest permission in Android Studio

19,942

Solution 1

Yes you can definitely do it manually. In fact, using the Studio is better for newbies since it avoids errors to certain extent!

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

Add this line

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

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.

Reference: Here

Solution 2

If you just type < in the usual place (below the manifest element at the top), you'll get a menu of options to choose from, including uses-permission. Select it, and Studio will put the whole element there, and show a menu of permissions from which to choose.

Share:
19,942
The B
Author by

The B

Updated on June 13, 2022

Comments

  • The B
    The B almost 2 years

    I want to know if I can add permissions to the Manifest in Android Studio in the same way as in eclipse. What I mean is the permission tab that is generating for you automatically instead of putting it manually.

    The Question here is if there is an option that makes it automatically instead of adding it manually!