I have an AsyncTask that handles a rather long download, using HttpClient. I’d like to stop the execution of this request if the user finishes the Activity that starts it. How can I achieve this?
So I started the AsyncTask, HttpClient is in execute(), processing a GET request, is there a way to terminate this?
Async task has a cancel call that you could override. You could get at your HttpClient from there and close the stream.