CountDownTimer.cancel() is not working in the below code:
CountDownTimer.cancel()
myTimer = new CountDownTimer(10000, 1000) { public void onFinish() { } @Ov
Solution By Gautier Hayoun :
Just made a drop-in replacement for CountDownTimer that you can cancel from within onTick : Github link– Gautier Hayoun Dec 12 '10 at 1:04