title: Why ProgressDialog is not always turning in my android application?
body: <p>I have made a image downloading thread to download image from desire web address. On that thread I have used a progress dialog , but the progress dialog is not turning after 3 or 4 second, it seems that, it is hanged. But the background work is ok. My problem is , what the progress dialog is not turning ? what it is looking like hang? 
  I am using this code at the start position.</p>
  
  <pre><code>imageUploadhandler.postDelayed(runImageUpload, 500);
          dialog = ProgressDialog.show(AllProductActivityPictGrid.this, "",
                  "Message...", true);
          dialog.setCancelable(true);
  </code></pre>