Jump to content

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


Sully
 Share

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...