title: Only the original thread that created a view hierarchy can touch its views
body: <p>Im Adding Progress Dialog in some Activity .But im getting Exception mention in title.how to resolve it.</p>
  
  <pre><code>dialog = ProgressDialog.show(Notification.this, "loading please wait",                
  "Loading. Please wait...", true);
  
  new Thread() {
   public void run() {
     try{
       performBackgroundProcess1();
       //sleep(3000,000);
     } catch (Exception e) {
       Log.e("tag", e.getMessage());
   }
  
   // dismiss the progress dialog
       dialog.dismiss();
    }
  }.start();
  </code></pre>
  
  <p>Any thing wrong with this.all Background process is performed in performbackgroundprocess method.</p>