Find if CountDownTimer is Finished?
问题 I was playing around with the CountDownTimer on Android and I came into sort of a dilemma. In my code, I have the following: public class mCountDownTimer extends CountDownTimer{ protected boolean hasFinished = false; public mCountDownTimer(long millisInFuture, long countDownInterval) { super(millisInFuture, countDownInterval); // TODO Auto-generated constructor stub } public void onFinish(){ hasFinished = true; } @Override public void onTick(long millisUntilFinished) { // TODO Auto-generated