Simple Loading Dialog in Android Studio -
Step 1 -Create Progress dialog before onCreate Method
ProgressDialog dialog;
Step 2 - Initialize dialog in onCreate Method and set massge
dialog = new ProgressDialog(this);
dialog.setMessage("Please wait...");
dialog.setCancelable(false);
Step 3 - call progress dialog where its needed
dialog.show();
dialog.dismiss();
Tags:
Android Development
