Totti
Totti

Reputation: 675

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() {
            }
        };

Upvotes: 3

Views: 1273

Answers (1)

Dheeraj Vepakomma
Dheeraj Vepakomma

Reputation: 28697

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

Upvotes: 2

Related Questions