title: Slowing the GUI down in Android
body: <p>My Android App works fine, except the end sequence. Its a game and at the end the screen shows the score:</p>
  
  <pre><code>TextView allscores = new TextView(this);
  
  allscores.setText("Your score: "+ mypoints);
  </code></pre>
  
  <p>Next I want the GUI to slowdown for a few seconds so the user has time to take in the information. Maybe 2 or 3 secs is fine.</p>
  
  <pre><code>try {
                  Thread.sleep(3000);
  
              } catch (InterruptedException e) {
  
                  e.printStackTrace();
              }
  
                              layout.removeAllViews();
  </code></pre>
  
  <p>Bear in mind, I'm new to thread programming. All this is done on the UI thread, I have no other threads running.
  Next I put in a final splash screen ending:</p>
  
  <pre><code>AnView animator = new AnView(this);
  
              layout.addView(animator);
  </code></pre>
  
  <p>where AnView is my own extension of View.</p>
  
  <p>All in all it runs great. Problem is the thread sleeps for 3 seconds without showing my final score. I don't know why. I don't know why it doesn't show my final score before sleeping. It actually goes blank, indicating that it removed all views and then slept.</p>