Example #1
0
 /** Dismiss loading dialog */
 public void dismissLoadingDialog() {
   Fragment frag = getSupportFragmentManager().findFragmentByTag(DIALOG_WAIT_TAG);
   if (frag != null) {
     LoadingDialog loading = (LoadingDialog) frag;
     loading.dismiss();
   }
 }
Example #2
0
 /** Show loading dialog */
 public void showLoadingDialog(String message) {
   // Construct dialog
   LoadingDialog loading = new LoadingDialog(message);
   FragmentManager fm = getSupportFragmentManager();
   FragmentTransaction ft = fm.beginTransaction();
   loading.show(ft, DIALOG_WAIT_TAG);
 }