When you cancel your timer, the task has already started executing. So, even if the timer gets cancelled, the AsyncTask executes in the background.
www.google.com.tw