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

Hi!

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).

Thanks!

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

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: Google [Bot] and 2 guests