I have posted a question Progress Dialog is not displaying while getting data from separate thread class but I haven\'t got the appropriate answers. I have already used async t
Try the following:
@Override protected void onPreExecute() { mProgressDialog =ProgressDialog.show(GmailInbox.this, "", "Please Wait",true,false); super.onPreExecute(); }