Android: ProgressBar in ProgressDialog not Animating
===

I have created one AsyncTask<Void, Long, Boolean> custom class, For doing some backgroung work(Accessing database).
In onPreExecute() method, I create one progress dialog 

    try {
				progressDialog = ProgressDialog.show(context, "",
						"Please wait...", true);
				progressDialog.setIndeterminate(true);

			} catch (final Throwable th) {
				// TODO
			}
And in onpostExecute()

    protected void onPostExecute(Boolean result) {
    
    			pinPoint();
    			progressDialog.dismiss();
    		}

Here pinpoint() method will get some data from server and pin the points in map.
But The progressBar in ProgressDialog is not animating...
Please provide me the best way...

Thanks