I assume that when I read the input stream, it blocks until it receives more data to read. I also assume that when the connection is closed, the read throws an IOException.
The problem is that sometimes when I change the connection from the carrier to Wi-Fi or from WiFi to the carrier, reading just gets stuck and never throws an IOException.
The SDK is 1.5, and the phone is HTC Hero.
This behavior is pretty ugly for me because I need to always stay in touch. Has anyone else seen this problem? Is this a mistake or am I a mistake?
thank
source
share