Hello,
I have a problem that many have had when developing code for internet connection in android:
java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)
The code I created is exactly the same as that suggested by Google in Android Developer:
Note that you already include the properties:
conn.setRequestProperty("Connection", "close");
and also the:
System.setProperty("http.keepAlive", "false");
It was working fine, but now it has stopped on some devices. That's weird. I have many users who are not having any problems, but some other users (who have the same version of APP) are having this problem. It started on December 26, 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?