how to stop/cancel android CountDownTimer

前端 未结 3 712
臣服心动
臣服心动 2020-11-29 08:25

I\'m extending the CountDownTimer class to obtain some custom functionality .In onTick() in case some conditions are met I call cancel() , expecting that will be the end of

3条回答
  •  悲&欢浪女
    2020-11-29 08:58

    CountDownTimer is also working fine for me, but I think it only works if you call it OUTSIDE of the CountDownTimer implemetation (that is don't call it in the onTick).

    Calling it inside also didn't worked.

提交回复
热议问题