Friday, June 21, 2019

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?


Answer



Update:
Google removed the need to ask permission for the internet for the latest version of Google Play.




Add the [INTERNET][1] permission to your manifest file.




You have to add this line:



 


outside the application tag in your AndroidManifest.xml



[1]:
https://developer.android.com/training/basics/network-ops/connecting.html




No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...