55.7 Canceling a Task
A running task may be canceled by calling the cancel() method of the task object passing through a Boolean value indicating whether the task can be interrupted before the in-progress task completes:
AsyncTask task = new MyTask().execute();
task.cancel(true);