code: public static DateTimeDialogFragment newInstance(DateTimeListener listener,
                                                       Date initialDate, Date minDate, Date maxDate, boolean isClientSpecified24HourTime,
                                                       boolean is24HourTime, int theme, int indicatorColor) {
          mListener = listener;
  
          // Create a new instance of SlideDateTimeDialogFragment
          DateTimeDialogFragment dialogFragment = new DateTimeDialogFragment();
  
          // Store the arguments and attach the bundle to the fragment
          Bundle bundle = new Bundle();
          bundle.putSerializable("initialDate", initialDate);
          bundle.putSerializable("minDate", minDate);
          bundle.putSerializable("maxDate", maxDate);
          bundle.putBoolean("isClientSpecified24HourTime", isClientSpecified24HourTime);
          bundle.putBoolean("is24HourTime", is24HourTime);
          bundle.putInt("theme", theme);
          bundle.putInt("indicatorColor", indicatorColor);
          dialogFragment.setArguments(bundle);
  
          // Return the fragment with its bundle
          return dialogFragment;
      }
docs: <p>Return a new instance of {@code SlideDateTimeDialogFragment} with its bundle
  filled with the incoming arguments.</p>
  <p>
  <p>Called by {@link DateTimePicker#show()}.</p>
  
  @param listener
  @param initialDate
  @param minDate
  @param maxDate
  @param isClientSpecified24HourTime
  @param is24HourTime
  @param theme
  @param indicatorColor
  @return