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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...