title: Android: ProgressDialog not showing immediately
body: <p>I have a problem of showing the progressDialog on android. It did shows up to the screen but it took few seconds before it really show the dialog. </p>
  
  <p>This is the code i did to show the dialog</p>
  
  <pre><code>Handler saveHandler = new Handler() {
  
                  @Override
                  public void handleMessage(Message msg) {
                      GallerySaveActivity.this.Submit(progress);
  
                      Button btn_next = (Button) findViewById(R.id.btn_next);
                      btn_next.setEnabled(true); 
                  }
              };
              progress.showDialog(saveHandler, "", "Accessing Facebook ...");
              Thread progress_thread = new Thread(progress); 
              progress_thread.start();
  </code></pre>
  
  <p>Do I have to do any extra work on the Thread object in order to show the dialog instantly without any delay.</p>