parvez rafi parvez rafi - 2 months ago 18
Android Question

how to set App permissions for marshmallow in eclipse and android studio?

i have a project in eclipse with some permissions, when i run this project in eclipse and device is upgraded to Android M, then the permissions of the app are enable by default.(go to settings->apps->your app->permissions, all are enabled)
but when i run in Android studio the permissions are disabled by default. any solutions for this.(go to settings->apps->your app->permissions, all are disabled)

Answer

You shouldn't ask for permissions, which you don't use. That's why in Android Studio permissions are disabled by default. But you can add permissions in your manifest file with tag <uses-permission>, for example

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

Place it before your <application> tag

Comments