Reputation: 675
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
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