Jump to content


Photo
- - - - -

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


  • Please log in to reply
No replies to this topic

#1 Sully

Sully

    New Member

  • New Members
  • 5 posts

Posted 03 September 2015 - 04:18 AM

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, 03 September 2015 - 05:22 AM.