title: When may we need to use runOnUiThread in android application?
body: <p>I have a code sample that uses this function to run a thread <code>runOnUiThread</code>. why and when may we need to use it?</p>
  
  <h2>edit</h2>
  
  <p>What about to use <code>AsyncTask</code> class, what's the <code>pros</code> and <code>cons</code>??</p>