title: Is there an Android equivalent to ASP.NET's DoEvents()?
body: <p>I have an Android app where I would like to display a "Processing..." message at the start of quite a bit of heavy duty number crunching, then display "Finished" when the processing is completed.  I try something like this:</p>
  
  <pre><code>TextView T = (TextView)findViewById(R.id.TheStatusView);
  T.setText("Running");
  T.invalidate();
  // lots of number crunching
  T.setText("Completed");
  </code></pre>
  
  <p>As some of you might have guessed by now, the "Running" message never appears, since the application is too busy with the number crunching to get around to redrawing the TextView.</p>
  
  <p>In ASP.NET, I would do something like:</p>
  
  <pre><code>T.Text = "Running";
  T.Refresh();
  Application.DoEvents();
  </code></pre>
  
  <p>and the text would be refreshed.
  Is there an equivalent in Android, or am I pretty much stuck?</p>