我重新启动一个CountDownTimer。我在这里读了很多问题,但没有人能帮助我。 当我使用下面的代码android中的CountDownTimer - 如何重新启动
if(Const.counter != null){
Const.counter.cancel();
Const.counter = null;
}
Const.counter = new CustomTimerTask(Const.currentLevel.timeGoal * 1000,1000);
Const.counter.start();
我开始一个新的计数器,但老人们也继续工作。请让我解决它。
尝试使用光度计...你可以esailt重置 – KOTIOS