title: Why to use Handlers while runOnUiThread does the same?
body: <p>I have come across both <a href="http://developer.android.com/reference/android/os/Handler.html">Handlers</a> and <a href="http://developer.android.com/reference/android/app/Activity.html#runOnUiThread%28java.lang.Runnable%29">runOnUiThread</a> concepts. But to me it still seems to be a doubt as on which facts do they differ exactly. </p>
  
  <p>They both are intended to do UI actions from a background thread. But what are the factors that are to be considered while we choose among the two methods. </p>
  
  <p>For example consider a <code>Runnable</code> <code>Thread</code> which performs a web service in the background and now I want to update the UI. </p>
  
  <p><strong>What would be the best way to update my UI? Should I go for <code>Handler</code> or <code>runOnUiThread</code>?</strong></p>
  
  <p>I still know I could use a <code>AsyncTask</code> and make use of <code>onPostExecute</code>. But I just want to know the difference. </p>