Jump to content
Sign in to follow this  

Mobile App Permissions ( Permission denied java.net.scoket.....

Recommended Posts

Hi every one , I am making some progress on creating an application that can do a simple ping.


I have a small problem here, This is the error I am getting when I try to run the application from my phone.


Note my phone is in Developer mode and all the possible settings in this mode that are needed are enabled.


java.net.SocketException:socket failed :EACCES (Permission Denied) 


I have inserted the fowling three lines into the manifest file to set the permissions but they do not seem to work.  

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

Any suggestions ? I would be really thankful if any one had any one could help.


Thanks All



Fixed ! Thanks to all for the view :)



Edited by Sully

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this