Is it possible to cancel AsyncTask that has one line command in doInBackground that performs a very long operation,like
@Override
protected Boolean doInBackground(String... filename) {
fetchfile(filename[0]);
// ...
// ...
return ...;
}