Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What permission do I need to access Internet from an Android application?

I get the following Exception running my app:

java.net.SocketException: Permission denied (maybe missing INTERNET permission) 

How do I solve the missing permission problem?

like image 595
Janusz Avatar asked Mar 04 '10 10:03

Janusz


People also ask

What permissions does your app need to connect to the internet?

Note: Both the Internet and ACCESS_NETWORK_STATE permissions are normal permissions, which means they're granted at install time and don't need to be requested at runtime.


1 Answers

Add the INTERNET permission to your manifest file.

You have to add this line:

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

outside the application tag in your AndroidManifest.xml

like image 149
7 revs, 6 users 29% Avatar answered Oct 13 '22 10:10

7 revs, 6 users 29%