this will show the timer in seconds only,
to get Timer in Minute and seconds
Click here
Click here
CountDownTimer countDownTimer; long duration = 300000;
{ public void onTick(long millisUntilFinished) { + millisUntilFinished / 1000); } |
if want to stop the timer before the finish time;
countDownTimer.cancel();
|
No comments:
Post a Comment