CountDownTimer keeps repeating loop
<p>I have a timer:</p>

<pre><code>new CountDownTimer(10000, 1000) {
        public void onTick(long millisUntilFinished) 
            {label.setText("Seconds Remaining: " + millisUntilFinished / 1000);}

        public void onFinish() {doSomething();}
     }.start();
</code></pre>

<p>It counts down from 10, and if it reaches 0 method 'doSomething()' is run. But it keeps repeating itself. I need 'doSomething()' to run only 10 times overall. Baring in mind that if the timer does not reach 0 another method needs to also run.</p>

<p>thanks, for any help</p>
