new CountdownTimer(totalTime, tickTime) {
public void onTick(long millisUntilFinished) {
log.d(TAG, "seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
log.d(TAG, "done!");
}
}.start();
Please refer to http://developer.android.com/reference/android/os/CountDownTimer.html
No comments:
Post a Comment