Code example for DialogFragment

Methods: getDialogonDestroyView, getRetainInstance