title: Progressdialog slow to show in Android
body: <p>I'm sure this is a simple threading issue but...</p>
  
  <p>I'm starting a ProgressDialog using:</p>
  
  <pre><code>ProgressDialog.show(Example.this, " " , " Loading. Please wait ... ", true,true);
  </code></pre>
  
  <p>Then running a block of code to download and parse XML.</p>
  
  <p>The problem I'm having is that this is all running under a onClick button method, and that the xml is downloaded and parsed before the dialog is shown.</p>
  
  <p>Any help would be greatly appreciated!</p>