7

api level 8 HttpURLConnection

view full story
linux-howto

http://stackoverflow.com – this is my first post - so I hope did everything right concerning code-formatting. Maybe you can help me with the following problem: With API-Level 10 and above, all my HttpURLConnections are working fine, but with API-Level 8 some (or sometimes most) of my attempts to download the content of a file (txt, html…) fails. I worked around this by just repeating the download whenever the server returned the response code “-1”. This is not very satisfying but it works (more or less) – but I guess it only works because of the fact that the content I receive is very short (max 100 chars) (HowTos)