title: ProgressDialog doesn't appear immediately
body: <p>I have a fragment with some buttons in it, when a button is clicked it should show a ProgressDialog, load an array of bitmaps and show it in the fragment in a gallery, dismiss ProgressDialog.</p>
  
  <p>But the ProgressDialog doesn't show immediately, it take something like 1 or 2 seconds and it just blink at the moment when my gallery is show.</p>
  
  <p>Im doing this after click:</p>
  
  <pre><code>try{
      progress = ProgressDialog.show(activity, "", "Loading images", true);
  
      //load images
      //show gallery
  
  }catch(){
      //...
  }finally{
      handler.sendEmptyMessage(0);
  }
  </code></pre>
  
  <p>My Handler at onCreate:</p>
  
  <pre><code>handler = new Handler() {
      public void handleMessage(Message msg) {
           progress.dismiss();
      }
  };
  </code></pre>
  
  <p>Im using Android 3.1</p>
  
  <p>Logcat shows anything :(</p>
  
  <pre><code>03-09 13:17:32.310: D/DEBUG(5695): before show()
  03-09 13:17:32.350: D/DEBUG(5695): after show()
  </code></pre>