when tackling the challenge 2 and using onCreateView( ) we need to use dismiss( ) in the onClickListener( ) method of the OK button hosted by the DatePickerFragment layout to dismiss the dialog and go back to the CrimeFragment. if we do not do it, the model is updated but the dialog is still visible - we need to press the back button to dismiss it. whereas if we took the onCreateDialog route and created the AlertDialog as given in the book the dialog is automatically dismissed on pressing the OK button of the AlertDialog. Why is this so? Even in the earlier chapters we never had to use dismiss( ) to remove a child fragment from visible status. Any ideas? Thanks.
Sudeep.