title: How can I close a ProgressDialog after a set time?
body: <p>I am trying to close a ProgressDialog box automatically after 3 seconds. Here is the dialog:</p>
  
  <pre><code>ProgressDialog progress = new ProgressDialog(this);
  progress.setTitle("Connecting");
  progress.setMessage("Please wait while we connect to devices...");
  progress.show();
  </code></pre>
  
  <p>I have tried a few methods, but I am unable to get any one of them to work. A simple time or anything would hopefully suffice. Thanks.</p>