I am working on an Android app that needs to read a line from a web page right when it starts. I am doing this with the following code:
try{ URL url
Consider using AndroidHttpClient class instead, it has nice preset timeouts so you wouldn't have to do anything.
AndroidHttpClient