/**
  * Show simple list dialog.
  *
  * @param fm the fragment manager
  * @param title the title
  * @param list the list
  * @param listDialogListener the list dialog listener
  * @param identifier the identifier
  */
 public static void showSimpleListDialog(
     FragmentManager fm,
     String title,
     ArrayList<String> list,
     ListDialogListener listDialogListener,
     int identifier) {
   DialogFragment newFragment =
       AlertFragmentDialog.newInstance(
           title, list, listDialogListener, AlertFragmentDialog.SIMPLE_LIST_DIALOG, identifier);
   newFragment.show(fm, "dialog");
 }
 /**
  * Show dialog. Shows a dialog with given title and message with OK button, Cancelable true,
  * <code>AlertButtonsClickInterface</code> object for invoking code on alert button clicks, type
  * OK or OK_Cancel and isCancelable.
  *
  * @param fm the fragment manager
  * @param title the title
  * @param message the message
  * @param alertFrag the alert AlertButtonsClickInterface
  * @param type the type
  * @param cancelable the cancelable use <code>DialogHelper.CANCELABLE</code> or <code>
  *     DialogHelper.NOT_CANCELABLE</code>
  * @param identifier the identifier
  */
 public static void showDialog(
     FragmentManager fm,
     String title,
     String message,
     AlertButtonsClickListener alertFrag,
     int type,
     boolean cancelable,
     int identifier) {
   DialogFragment newFragment =
       AlertFragmentDialog.newInstance(title, message, alertFrag, type, null, null, identifier);
   newFragment.setCancelable(cancelable);
   newFragment.show(fm, "dialog");
 }
 /**
  * Show multiple choice list dialog.
  *
  * @param fm the fragment manager
  * @param title the title
  * @param list the list
  * @param listDialogListener the list dialog listener
  * @param identifier the identifier
  */
 public static void showMultipleChoiceListDialog(
     FragmentManager fm,
     int title,
     ArrayList<String> list,
     ListDialogListener listDialogListener,
     int identifier,
     Context context) {
   DialogFragment newFragment =
       AlertFragmentDialog.newInstance(
           context.getResources().getString(title),
           list,
           listDialogListener,
           AlertFragmentDialog.MULTI_CHOICE_LIST_DIALOG,
           identifier);
   newFragment.show(fm, "dialog");
 }
 /**
  * Show time dialog. This function is used to show the time picker dialog.
  *
  * @param fm the fragment manager
  * @param is24Hour the is24 hour
  * @param dateListener the date listener
  * @param identifier the identifier
  */
 public static void showTimeDialog(
     FragmentManager fm, boolean is24Hour, OnDateTimeSetListener dateListener, int identifier) {
   DialogFragment newFragment =
       AlertFragmentDialog.newInstance(is24Hour, dateListener, TIME_DIALOG, identifier);
   newFragment.show(fm, "dialog");
 }
 /**
  * Show date dialog. This function is used to show the date picker dialog.
  *
  * @param fm the fragment manager
  * @param dateListener the date listener
  * @param identifier the identifier
  */
 public static void showDateDialog(
     FragmentManager fm, OnDateTimeSetListener dateListener, int identifier) {
   DialogFragment newFragment =
       AlertFragmentDialog.newInstance(true, dateListener, DATE_DIALOG, identifier);
   newFragment.show(fm, "dialog");
 }