title: Android ProgressDialog not displayed correctly
body: <p>In my app I use a ProgressDialog to show the user that some services are running. I start the ProgressDialog in my activity, but it is not displayed correctly. It is not started right away. Just when service is mostly done it pops up for a millisecond and dismisses again. </p>
  
  <p>How does it work:</p>
  
  <p>In my activity I have a button. When the button is clicked I start the ProgressDialog and call a AsyncTask for the service call. When the AsyncTask is done it broadcasts (!) the result back to the activity. The AsyncTask does not have direct access to the activity. The whole process works quit well. But not the ProgressDialog.</p>
  
  <p>The ProgressDialog variable is a class member.</p>