Skip to content Skip to sidebar Skip to footer

Why Inputstream Is Stopping My Application?

I have an Android App that talks with a Java Server between socket connection. When server is running, there's no problem. I send something from Android and server answer. I get re

Solution 1:

You're using println() to send a line that already contains a newline. That will result in two newlines being sent, which will probably confuse the peer and possibly cause it to return something unexpected, which your code may not be coping with correctly.


Post a Comment for "Why Inputstream Is Stopping My Application?"