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
[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 - different behaviour of url.openstream() on emulator and phys

different behaviour of url.openstream() on emulator and phys

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

different behaviour of url.openstream() on emulator and phys

Postby micm » Sat Apr 11, 2009 8:45 am

Hi,

when I execute the following code in the emulator the html code of the website is read in line by line as expected, but in on the physical android device the EOL is somehow missed and several, sometimes all, lines are read into one.
Any idea how I can get the "correct" behaviour also on the physical device?

URL url = new URL("http://www.spiegel.de/"); //just an example
System.out.println(url);
DataInputStream dis = new DataInputStream(new BufferedInputStream
(url.openStream()));
while ((s = dis.readLine()) != null){
System.out.println(s);
}

Thanks for any ideas,
Michael
micm
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Apr 11, 2009 7:28 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 4 guests