Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android CountDownTimer onStart

i want to save the time when countDownTimer begin working, is there any method like onStart()?

timeToDirectAnswer = new CountDownTimer(25000, 1000) {

            @Override
            public void onTick(long millisUntilFinished) {
            }

            @Override
            public void onFinish() {
            }
        };
like image 346
Totti Avatar asked Mar 09 '26 12:03

Totti


1 Answers

The timer starts ticking the moment start() is called on it. You can get the current time wherever start() is called.

like image 127
Dheeraj Vepakomma Avatar answered Mar 11 '26 00:03

Dheeraj Vepakomma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!