title: Set minimal time for ProgressDialog , maximum not need
body: <p>I need to display user info while app processing some data. I use ProgressDialog like </p>
  
  <pre><code>pd = ProgressDialog.show(MainActivity.this,
                          "", "Processing",
                          true, false);
  </code></pre>
  
  <p>Processing takes while connect to network and download data, but when network is not available it returns immediately and my progress dialog just flash very quick. Is there maybe more elegant solution then  to put in catch Thread to sleep for some time :</p>
  
  <pre><code>try{
    //connecting and calculating
  }
  catch(Exception exc){
  Thread.sleep(400);
  handler.sendEmptyMessage(0);
  }
  </code></pre>
  
  <p>I need to set minimal time for my ProgressDialog regardless of success or failure ? Does anybody know how to achieve that ? </p>