• Register
0 votes

Problem :

I am getting bellow error message

java.net.socketexception: socket failed: eacces (permission denied)

6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had faced the issue and i changed permissions as bellow 
<uses-permission android:name="android.permission.INTERNET"/>

And also change your activity names as bellow

<activity android:name=".Addfriend"/>
    <activity android:name=".UpdateDetails"/>
    <activity android:name=".Details"/>
    <activity android:name=".Updateimage"/>
After doing above changes my issue got resolved.

Further Readings:

9 7 4
38,600 points

Related questions

0 votes
1 answer 8 views
Problem: I am having a very weird problem with storage accessing on some devices. The app works on my testing devices (Nexus 4 & 7, Samsung GS5). All my devices running Android 4.4.2. But I received many emails from users saying that the app can not write to the storage (neither the internal storage nor the sd card).
asked Apr 11 ummesalma 29.2k points
1 vote
1 answer 18 views
Problem : I don't understand where the mistake is, please help me : try { InputStream myInput; myInput = getAssets().open("XXX.db"); // Path to the just created empty db String outFileName = "/data/data/XX/databases/" + "XXX.db"; // Open the empty db ... = null; } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } Error: open failed: EACCES (Permission denied)
asked Mar 24 Sabbir Hossain 14.6k points
0 votes
1 answer 1 view
1 view
Problem: I'm working on an integration with Alternative Payments using their hosted page integration. Their C# SDK does not have this integration available at the moment, but as you can see it's pretty simple and I made a small class to send the post request and get the JSON ... . I've been reading answers for the same error and none of them solved my issue so far. What am I missing in this code?
asked Apr 24 Yeamin 21.4k points
0 votes
1 answer 2 views
Problem: I came across with this problem > Java.net.socketexception: recvfrom failed: econnreset (connection reset by peer)
asked Apr 26 ummeshani 8.8k points
0 votes
1 answer 17 views
0 votes
1 answer 116 views
Problem: I am seeing "{writer,send_failed,{error,closed}}" error on server side and "java.net.SocketException: Connection reset by peer: socket write error" error on java client side intermittently. What could possibly go wrong here? Both server and ... rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:630) at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:621) Please help me.
asked Mar 23, 2020 LizzyM 6.1k points
0 votes
1 answer 293 views
Problem : I am trying to implement an HTTP Server using Sockets but getting bellow error java net socketexception connection reset by peer socket write error
asked Oct 31, 2019 peterlaw 6.9k points
0 votes
1 answer 484 views
Problem : I am getting bellow error while using Sockets java.net.socketexception: software caused connection abort: socket write error
asked Oct 19, 2019 peterlaw 6.9k points
1 vote
1 answer 5 views
Problem: I am getting this permission error and I do not have any clue: Error while executing gem errno eacces permission denied.
asked Apr 26 PkGuy 23.5k points
0 votes
1 answer 5 views
Problem: I need some help with the issue>eacces: permission denied. Who is there to solve it?
asked Mar 27 ashik 14.6k points