Set Internet Permission in Manifest in Android Studio

How to Give Internet Permission in Manifest in Android Studio

We will look how to add internet permission in android manifest in android studio here.
Internet permission is necessary if your android app connects to internet.

Without internet permission, your app will show error message when trying to load data from web.




So lets set internet permission, Go to app > src > main and select manifest.

In manifest, add this line of code:

 

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

 

This code must be above the <Application.

 

Here’s an example screenshot

 

You can also set other permissions such as – write external storage,wifi state etc with this method




, , ,

Post navigation

Leave a Reply

Your email address will not be published. Required fields are marked *