title: timer in toast android
body: <p>I'm trying to make a simple countdown timer that shows the remaining time in a toast.<br>
  I wrote this code:</p>
  
  <pre><code>new CountDownTimer(10000, 1000) {
  
      public void onTick(long timeRemaining) {
          Toast.makeText(getBaseContext(), "" + timeRemaining / 1000, 
                                                        Toast.LENGTH_SHORT).show();
      }
  
      public void onFinish() {
          // do something
      }
  
  }.start();
  </code></pre>
  
  <p>The problem is that the action that's in the onFinish method is executed when in the toast I'm showing "3".<br>
  So, the toast is slower respect the timer.<br>
  How can I solve that?</p>