title: Android UI is not updating
body: <p>I'm working on a countdown that shows seconds remaining to start of the game. So I put TextView into middle of layout and in for loop I am changing the text of TextView, playing the sound using MediaPlayer, then waits 1 second and repeat the proccesss. </p>
  
  <p>The problem is that my text view is not updating - after finishing whole for loop it just change TextView to last text that should be displayed. But since all sounds was played, I can say that Activity is running normaly. So I'm looking for some easy way how to update my UI. I saw some examples of AsynTask, but I think that's too difficult solution for this simple problem. Also, I've tried using handle to change text, but it has got no effect.</p>
  
  <p>My code:</p>
  
  <p>This is in onResume() method:</p>
  
  <pre><code>    //Using handler to delay countdown, 
              //so Activity have enough time to display view
      hand.postDelayed((new Runnable(){
  
          @Override
          public void run() {
              countdownToStart();
              game.start();
          }
  
      }), 1000);
  </code></pre>
  
  <p>countdownToStart() method:</p>
  
  <pre><code>protected void countdownToStart(){
      int soundSource[] = {R.raw.cntdwn_three, R.raw.cntdwn_two, R.raw.cntdwn_one, R.raw.cntdwn_go};
      final String nums[] = {"3", "2", "1", "GO"};
      final TextView countdownText = (TextView) findViewById(R.id.challenge_countdown_text);
      Handler hand2 = new Handler();
  
      //4 different texts = 4 cycles of for loop
      for(int i = 0; i &lt; 4; i++){
          //Load sound
          for(int x = 0; x &lt; 5; x++){
              countdownSound = MediaPlayer.create(getApplicationContext(), soundSource[i]);
              if(countdownSound != null)
                  break;
          }
          if(countdownSound == null){
              Toast.makeText(getApplicationContext(), R.string.sound_load_error, Toast.LENGTH_SHORT).show();
              onBackPressed();
          }
          countdownSound.start();
  
          //Set textview
          countdownText.setText(nums[i]);
          if(i == 3)
              countdownText.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 200);
  
          //Delay between countdowns
          SystemClock.sleep(1000);
  
          //Release MediaPlayer
          countdownSound.release();
  
      }
  
  }
  
  }
  </code></pre>