ProgressDialog never shows up when the task right after is an upload (or other processor intensitve process)
<p>I'm trying to display a ProgressDialog to indicate that the user should wait while something uploads in the background, however, the device (galaxy tab) just freezes for the time that the upload happens and then when it comes out of its stupor it just goes to the next thing (having never displayed the ProgressDialog.</p>

<p>When I eliminate the upload, the dialog appears as expected. I'm guessing this is an async issue? The dialog simple never gets a time slice and by the time it does it's already been dismissed?</p>

<pre><code>pd = ProgressDialog.show(getApplicationContext(),"", "Sending Image ...", true);
uploadImage(); //if I comment out this line, the dialog shows, otherwise not.
pd.dismiss();
</code></pre>

<p>Is there some way to block on the ProgressDialog line until it actually renders? Or am I overlooking something stupid (and obvious)?</p>
