The NewInstance method is invoked to instantiate a new DatePickerFragment. This method takes an Action that will be invoked when the user clicks on the OK button in the DatePickerDialog.
When the fragment is to be displayed, Android will call the method OnCreateDialog. This method will create a new DatePickerDialog object and initialize it with the current date and the callback object (which is the current instance of the DatePickerFragment).