private class MyTimer extends CountDownTimer{
public MyTimer(long timeLeft,long timeInterval){
super(timeLeft,timeInterval);
}
public void onTick(long timeToGo){
//code to execute on every tick
}
public void onFinish(){
//code to execute onFinish
}};
我正在尝试使用上面的计时器制作应用程序,但调用myTimer.cancel()不会停止计时器。请帮忙。计时器继续计数