【发布时间】:2013-11-15 09:24:46
【问题描述】:
我必须重新启动 CountDownTimer。我在这里阅读了很多问题,但没有一个答案对我有帮助。 当我使用以下代码时
if(Const.counter != null){
Const.counter.cancel();
Const.counter = null;
}
Const.counter = new CustomTimerTask(Const.currentLevel.timeGoal * 1000,1000);
Const.counter.start();
我创建了一个新柜台,但旧柜台还在继续工作。请帮我解决。
【问题讨论】:
-
尝试使用cornometer ...你可以esailt重置
-
你可以: timer.cancel() 然后 timer.start()