public static SwitchDateTimeDialogFragment newInstance(String label,String positiveButton,String negativeButton){
  SwitchDateTimeDialogFragment switchDateTimeDialogFragment=new SwitchDateTimeDialogFragment();
  Bundle args=new Bundle();
  args.putString(TAG_LABEL,label);
  args.putString(TAG_POSITIVE_BUTTON,positiveButton);
  args.putString(TAG_NEGATIVE_BUTTON,negativeButton);
  switchDateTimeDialogFragment.setArguments(args);
  return switchDateTimeDialogFragment;
}

public static SwitchDateTimeDialogFragment newInstance ( String label , String positiveButton , String negativeButton ) { SwitchDateTimeDialogFragment switchDateTimeDialogFragment = new SwitchDateTimeDialogFragment ( ) ; Bundle args = new Bundle ( ) ; args . putString ( TAG_LABEL , label ) ; args . putString ( TAG_POSITIVE_BUTTON , positiveButton ) ; args . putString ( TAG_NEGATIVE_BUTTON , negativeButton ) ; switchDateTimeDialogFragment . setArguments ( args ) ; return switchDateTimeDialogFragment ; }
create a new instance of switchdatetimedialogfragment
