Basem Basem - 5 months ago 65
Android Question

Manifest permission in Android Studio

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!


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