Answers for "how to stop a countdown timer android"

2

how to stop countdowntimer in android

CountDownTimer yourCountDownTimer = new CountDownTimer(zaman, 1000) {                    
    public void onTick(long millisUntilFinished) {}

    public void onFinish() {}

    }.start();

yourCountDownTimer.cancel();
Posted by: Guest on June-12-2021
0

How to make a countdown timer in Android?

new CountDownTimer(30000, 1000) {

    public void onTick(long millisUntilFinished) {
        mTextField.setText("seconds remaining: " + millisUntilFinished / 1000);
       //here you can have your logic to set text to edittext
    }

    public void onFinish() {
        mTextField.setText("done!");
    }

}.start();
Posted by: Guest on October-09-2021

Code answers related to "how to stop a countdown timer android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language