Add internet permission in AndroidManifest.xml Android Studio,Eclipse

Where can you add internet permission on your android development project in Studio, Eclipse.

Add internet permission in AndroidManifest.xml Android Studio,Eclipse

Android is currently designing and developed by Google.com and Google believes on giving the best product to its user including their content security. So permissions are used to take permission of android app user about using their device resources like network connection, contacts, location using gps, web browsing cookies, running on background permission and more. So internet permission gives the path to use internet connection using android apps. So here is the complete step by step tutorial for Add internet permission in AndroidManifest.xml Android Studio,Eclipse.

How to Add internet permission in AndroidManifest.xml Android Studio,Eclipse.

1. Locate AndroidManifest.xml file into your android application project.

2. Copy below internet permission code.

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

3. Now open your AndroidManifest.file and paste this permission just below where user-sdk tag closed Like i do in below example.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
 package="com.android_examples.com.webbrowser"
 android:versionCode="1"
 android:versionName="1.0" >

 <uses-sdk
 android:minSdkVersion="8"
 android:targetSdkVersion="21" />

 <uses-permission android:name="android.permission.INTERNET" />
 
 <application
 android:allowBackup="true"
 android:icon="@drawable/ic_launcher"
 android:label="@string/app_name"
 android:theme="@style/AppTheme" >
 <activity
 android:name=".MainActivity"
 android:label="@string/app_name" >
 <intent-filter>
 <action android:name="android.intent.action.MAIN" />

 <category android:name="android.intent.category.LAUNCHER" />
 </intent-filter>
 </activity>
 </application>

</manifest>

 

Leave a Reply

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