When the user selects a date and clicks the OK button, the DatePickerDialog will call the method IOnDateSetListener.OnDateSet. This interface is implemented by the hosting DialogFragment. If the user clicks the Cancel button, then fragment and dialog will dismiss themselves.
There are several ways the DialogFragment can return the selected date to the hosting activity:
Invoke a method or set a property – The Activity can provide a property or method specifically for setting this value.
Raise an event – The DialogFragment can define an event that will be raised when OnDateSet is invoked.
Use an Action – The DialogFragment can invoke an Action to display the date in the Activity. The Activity will provide the Action