The problem is this: the countdown in my TextView
starts from the 4th second and on the 1st, 0 — it is not shown, although the timer is idle, as if it counts to zero. How can I get a count from 5 to 1. Can you advise other implementations of the countdown timer?
timer = new CountDownTimer(5000, 1000) { public void onTick(long millisUntilFinished) { // присваиваю значение TextView timerText.setText("00:0" + millisUntilFinished / 1000); } public void onFinish() {} }.start();