Question Detail

How to create ProgressDialog system define progress dialog box, which will indicate that request is in process.
Not customize, Is there any way to implement Progress Dialog with Spinner and its Title in android.


Thread Reply

Hemant Sharma

- 6 months ago

Android has a class Called ProgressDialog you can use it and implement / Create ProgressDialog Dialog box.
 

ProgressDialog progressDialog = new ProgressDialog(activity);
progressDialog.setMessage("Processing...");
progressDialog.setCancelable(cancelable);
progressDialog.show();

When you want to hide, dismiss or cancel the ProgressDialog

progressDialog.cancel(); 
progressDialog.hide(); 
progressDialog.dismiss();

Hemant Sharma

- 6 months ago

Android has a class Called ProgressDialog you can use it and implement / Create ProgressDialog Dialog box.
 

ProgressDialog progressDialog = new ProgressDialog(activity);
progressDialog.setMessage("Processing...");
progressDialog.setCancelable(cancelable);
progressDialog.show();

When you want to hide, dismiss or cancel the ProgressDialog

progressDialog.cancel(); 
progressDialog.hide(); 
progressDialog.dismiss();