I am running remote audio-file-fetching and audio file playback operations in a background thread using AsyncTask. A Cancellable progress bar is sh
AsyncTask
Cancellable
The only way to do it is by checking the value of the isCancelled() method and stopping playback when it returns true.