There is a cancel() method in android to cancel a countdown timer. But since the count down timer is running in a different thread, will the count down timer cancel, if I cancel it from inside of a button OnClickLitener().
The countdown timer was not started in the buttonOnclickListener, but It has to be cancelled inside the onClickListener().
There is a cancel() method in android to cancel a countdown timer. But since
Share
Here is an example of two buttons and a timer:
The timer is running as a separate entity.
You can start with one button and stop with another.
and the main.xml