code: public static ProgressDialogFragment show(FragmentManager fragmentManager,
                                                CharSequence title, CharSequence message, boolean cancelable) {
          ProgressDialogFragment dialogFragment = new ProgressDialogFragment();
          dialogFragment.mTitle = title;
          dialogFragment.mMessage = message;
          dialogFragment.setCancelable(cancelable);
          dialogFragment.show(fragmentManager, TAG);
          return dialogFragment;
      }
docs: Creates and shows an indeterminate progress dialog.  Once the progress dialog is shown, it
  will be shown for at least the minDisplayTime (in milliseconds), so that the progress dialog
  does not flash in and out to quickly.