Handling connection timeouts (SAXParser)

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Handling connection timeouts (SAXParser)

Postby koriyama » Sun Jun 08, 2008 10:34 pm


I have been using SAXParser to read data from XML files on my server, and it works just fine.

However, if I lose internet connection on my computer, while my App is running, Android will stall and throw the "Force close" window; in fact, sometimes the emulator will simply stop responding to any keys, requiring me to close it entirely.

Is there any way I can handle a timeout on that operation (i.e., run some code if there is no response for X seconds).


PS - the code I'm using is very similar to the one shown on this tutorial:
Posts: 3
Joined: Sat Apr 19, 2008 10:13 pm


Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 3 guests