I want to show ProgressDialog
when I click on Login button and it takes time to move to another page. How can I do this?
final ProgressDialog loadingDialog = ProgressDialog.show(context,
"Fetching BloodBank List","Please wait...",false,false); // for showing the
// dialog where context is the current context, next field is title followed by
// message to be shown to the user and in the end intermediate field
loadingDialog.dismiss();// for dismissing the dialog
for more info Android - What is difference between progressDialog.show() and ProgressDialog.show()?