Hi,
I am using AsyncTask in my application.
The problem is that when server is down the AsyncTask throws an Interrupted exception. How to track that whether server is down or not.
`
HttpGet httpget = new HttpGet(urls[i]);
ResponseHandler<String> responseHandler = new BasicResponseHandler();
content = httpClient.execute(httpget, responseHandler);
`
This same problem also occurs when the handset is kept idle for some time then keyguard gets lock and I suppose that WI-FI also gets disabled. So, when I enable the keyguard and if my application is in foreground then it gives the same exception.
Can someone please let me know what should I do in order to remove this exception? Is there in solution to this.
Please let me know what can be done.
Regards
Sunil