Android alert dialog query
<p>I have been working on android application and I have got stuck at a point.</p>

<p>I have a method which shows a progress dialog to the user. Then after the code has run I am showing an alert dialog.</p>

<p>Here I have got stuck. The progress dialog is not showing when method calls.</p>

<p>Code:</p>

<pre><code>progressDialog = ProgressDialog.show(NameOfYourActivity.this, "", "Loading. Please wait...", true);
</code></pre>

<p>Thanks</p>
