Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Handling connection timeouts (SAXParser)

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 5 guests