Issue with the view when the Timer completes
<p>I am using the following code:</p>

<pre><code>public class CountDown extends CountDownTimer {

        public CountDown(long millisInFuture) {
            super(millisInFuture, 1000); 
        }

        public void onFinish() {

        }

        public void onTick(long millisUntilFinished) {

            Integer milisec = new Integer(new Double(millisUntilFinished)
                    .intValue());
            Integer cd_secs = milisec / 1000;
            Integer hours = cd_secs / 3600;
            Integer minutes = (cd_secs % 3600) / 60;
            Integer seconds = (cd_secs % 3600) % 60;
            timerText.setText(String.format("%02d", hours) + ":"
                    + String.format("%02d", minutes) + ":"
                    + String.format("%02d", seconds));
            long timeLeft = millisUntilFinished / 1000;
        }
    }
</code></pre>

<p>I am displaying multiple timers on the same screen.</p>

<p>The problem I am facing is that , when the timers completes its duration , the timer is displayed as "00:00:01"</p>

<p>Since multiple timers(consider 3 timers) are running with different durations , I can't hard code on the onFinish() , since on hardcoding I am getting error since other timers are still running when the one of the timer has completed.</p>

<pre><code>public void onFinish() {
            secText.setText("00");
}
</code></pre>

<p>Kindly provide your inputs.</p>

<p>Is there any problem with the source code, why its not changing to "00:00:00" &amp; stopping to "00:00:01" when the timer has completed?</p>

<p>Thanks in advance.</p>

<p>Warm Regards,</p>

<p>CB</p>
