Android – Controlling a task with Timer and TimerTask?
You might consider: Examining the boolean result from calling cancel() on your task, as it should indicate if your request succeeds or fails Try purge() or cancel() on the Timer instead of the TimerTask If you do not necessarily need Timer and TimerTask, you can always use postDelayed() (available on Handler and on any View). … Read more