0
Hello,
I have a problem that many have had when developing code for internet connection on android:
java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)
The code I created is exactly the same as suggested by Google on Android Developer:
http://developer.android.com/intl/pt-br/training/basics/network-ops/connecting.html
Note that it already includes the properties:
conn.setRequestProperty("Connection", "close");
and also the:
System.setProperty("http.keepAlive", "false");
It was working very well, but now stopped on some devices. That’s the weird thing. I have many users who are not having any problem, but some other users (who are with the same version of the APP) are having this problem. It started on the 26th/12th, with no explanation. It affects both GET and POST. I’m having this error in Galaxy-Y - Jellybean (4.1.2).
Does anyone have any other suggestions?
What is the error that occurs?
– gato
Take a look at that answer, I’ve seen this error and as far as I know it’s not from the code no. http://stackoverflow.com/a/21319789/3517631
– Ricardo