How to give Internet access to android application

Add the INTERNET permission to your manifest file.

You have to add this line:

To perform network operations in your application, your manifest must include the following permissions.

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

outside the application tag in your AndroidManifest.xml


For Internet Permission:

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

For Access network state:

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

For Access WiFi state:

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

Also Read:

We will be happy to hear your thoughts

Leave a reply

CodeROG
Logo
Compare items
  • Total (0)
Compare
0