title: ProgressDialog not showing up in activity
body: <p>I am trying to include a ProgressDialog in my application. But it is not showing up.</p>
  
  <p>Here's the code snippet where i use the ProgressDialog:</p>
  
  <pre><code>public class abcActivity extends Activity {
      public boolean onOptionsItemSelected(MenuItem item) {
          case XYZ:
              ProgressDialog dialog = ProgressDialog.show(abcActivity.this, "", "Please wait for few seconds...", true);
              callSomeFunction();
              dialog.dismiss();
              showToast(getString(R.string.SomeString));
              break;
      }
  }
  </code></pre>
  
  <p>Does anyone know why the dialog is not showing up? Any clues?</p>