title: Android change in view depending upon a thread is over
body: <p>I have created a Thread in <code>onCreate()</code>. It is running fine. Now I want to change  something in view, when the thread is over. But if add it in the <code>run()</code> method, it is giving <code>android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.</code> error. How to solve this problem?</p>
  
  <pre><code>Thread updateThread = new Thread() {
   @Override
   public void run() {
    ................
    ................
     //this line is giving problem
  loader.setVisibility(View.INVISIBLE);                               
   }
  };
  updateThread.start();
  </code></pre>