I have the following CountDownTimer
:
countdown = new CountDownTimer(10000, 5000) {
@Override
public void onTick(long millisUntilFinished) {
// Stuff here
}
@Override
public void onFinish() {
// Restart countdown
countdown.start();
}
}.start();
As seen, there's a 5 seconds tick interval. But when this CountDown
starts, the first interval occurs at 0 miliseconds.
Why my first tick is being fired at 0 miliseconds time, instead of 5000 miliseconds time?