Skip to content

Instantly share code, notes, and snippets.

@DrMarkes
Last active February 3, 2016 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DrMarkes/e71dc9d0046a4c434b3b to your computer and use it in GitHub Desktop.
Save DrMarkes/e71dc9d0046a4c434b3b to your computer and use it in GitHub Desktop.
Bundle b = new Bundle();
b.putInt(DatePickerDialogFragment.YEAR, 2012);
b.putInt(DatePickerDialogFragment.MONTH, 6);
b.putInt(DatePickerDialogFragment.DATE, 17);
DialogFragment picker = new DatePickerDialogFragment();
picker.setArguments(b);
picker.show(getActivity().getSupportFragmentManager(), "frag_date_picker");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment