¡@

Home 

2014/10/16 ¤W¤È 08:19:51

android Programming Glossary: mycountdowntimer

Android: CountDownTimer skips last onTick()!

http://stackoverflow.com/questions/8857590/android-countdowntimer-skips-last-ontick

can create your own timer with Runable for example. class MyCountDownTimer private long millisInFuture private long countDownInterval public.. long millisInFuture private long countDownInterval public MyCountDownTimer long pMillisInFuture long pCountDownInterval this.millisInFuture.. counter countDownInterval and to start it new MyCountDownTimer 10000 2000 .Start EDIT FOR GOOFY'S QUESTION you should have..

Android: CountDownTimer skips last onTick()!

http://stackoverflow.com/questions/8857590/android-countdowntimer-skips-last-ontick

I don't know why the last tick is not working but you can create your own timer with Runable for example. class MyCountDownTimer private long millisInFuture private long countDownInterval public MyCountDownTimer long pMillisInFuture long pCountDownInterval.. with Runable for example. class MyCountDownTimer private long millisInFuture private long countDownInterval public MyCountDownTimer long pMillisInFuture long pCountDownInterval this.millisInFuture pMillisInFuture this.countDownInterval pCountDownInterval.. handler.postDelayed this countDownInterval handler.postDelayed counter countDownInterval and to start it new MyCountDownTimer 10000 2000 .Start EDIT FOR GOOFY'S QUESTION you should have a variable to hold counter status boolean . then you can write..