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?
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?
Add the INTERNET permission to your manifest file.
You have to add this line:
outside the application tag in your AndroidManifest.xml
Just put below code in AndroidManifest :
As per current versions, Android doesn't ask for permission to interact with the internet but you can add the below code which will help for users using older versions Just add these in AndroidManifest
To request for internet permission in your code you must add these to your AndroidManifest.xml file
For more detail explanation goto https://developer.android.com/training/basics/network-ops/connecting
forget about adding the permission into the manifest Add this code as a method
and write this in your Main