I want to do countdown timer with pause and restart.Now i am displaying countdown timer By implenting ontick() and onfinish().please help me out.HEre is th code for countdow
I'm using two private vars in this case:
private long startPauseTime; private long pauseTime = 0L; public void pause() { startPauseTime = System.currentTimeMillis(); } public void resumen(){ pauseTime += System.currentTimeMillis() - startPauseTime; }