I know how to do this with Intent, but how do I do this....
Here is the code I have to open the DatePickerFragment
:
DialogFragment newFragment = new DatePickerFragment();
Bundle bundle = new Bundle();
bundle.putString("date", (String) itemDict.get(Helper.convertKeyString(name, false)));
newFragment.setArguments(bundle);
newFragment.show(getFragmentManager(), "datePicker");
Once that is open, how do I pass the date I choose back to my Activity
?