I am trying to put a Countdown timer
using a TextView
inside my Android studio
project. I have been looking at other posts but I haven't been getting any good information. I want the simplest way to make an easy Countdown timer
. Thanks in advance!
Countdown Timer:
CountDownTimer Count = new CountDownTimer(5000, 1000) {
@Override
public void onTick(long millisUntilFinished) {
timerText.setText("Seconds remaining: " + ((millisUntilFinished/ 1000) ));
}
@Override
public void onFinish() {
timerText.setText("Time Done...");
}
};
Count.start();