Display Score In A Different Way in a Game
<p>I am making a game and would like  To display the score in such a fashion that if my score is 0 and is increased by 10, then the score should increment through all of the numbers from 0 to 10. After reaching the new score it should stop, for at least a small pause.</p>

<p>If, again, the score is increased by another 10, the scoreboard should increment through every number from 10 to 20 and then stop again.</p>

<p>I have tried using handlers but unsuccessful in getting them a pause or stop, in any way.</p>

<p>The example in this <a href="http://www.youtube.com/watch?v=NdZ8YupmEmA&amp;feature=fvwrel" rel="nofollow">video</a> demonstrates what I am trying to accomplish. If you look at the scoreboard in the top right, you will see the score constantly incrementing. Here is the url in case the above link does not work: <a href="http://www.youtube.com/watch?v=NdZ8YupmEmA&amp;feature=fvwrel" rel="nofollow">http://www.youtube.com/watch?v=NdZ8YupmEmA&amp;feature=fvwrel</a></p>

<p>This is the code for my Runnable to increment the score.</p>

<pre><code>final Handler mHandler=new Handler();
    mRunnable=new Runnable() {

        public void run() {
            String s = null;
                   ++i;
                   s= new Integer(i).toString();    
                   tv.setText(s);
                   mHandler.postDelayed(mRunnable,1000);       

                }

        /*protected void onStop() {
            mHandler.removeCallbacks(mRunnable);
        }*/
    };

    mHandler.postDelayed(mRunnable,1000);
</code></pre>

<p>What I specifically need is how to get the code to stop counting.</p>
