Hello. I use the following code to work with the timer, how can I stop it before the scheduled time?
new CountDownTimer(1000, 1000) { public void onTick(long millisUntilFinished) { final int msek = (int) millisUntilFinished/10; // получаем мсек t1.setText(String.valueOf(Time)+"."+String.valueOf(msek)); } public void onFinish() { } }.start();