Android AsyncTask blocks back key dispatch Event
<p>The Problem is:</p>

<p>My Activity starts an AsyncTask in onStart().
In the doInBackground Method I make a short webrequest, and depending on your network connetion, this may take a little, so I want this task cancelable... </p>

<p>BUT..</p>

<p>After hours of searching, testing and debugging I noticed now, when the user presses the back button during the doInBackground Method, the Keyevent ist always dispatched AFTER my doInBackground method is finished.</p>

<p>So I dont have to wonder why the asynctask never is cancelled when the users presses the backbutton,
the AsyncTask.cancel(true) is invoked too late..... (even if I am not sure if cancel(true) will help)</p>

<p>So is this normal behavoiur with asynctask and backbutton?</p>

<p>This cant be normal, because how should the user ever get back from the activity on slow connection? </p>

<p>wait for timeout?</p>

<p>I am Begging for Help, cancel an async webrequest SHOULD be possible :)</p>
