Code example for DialogFragment

Methods: onDismiss, getActivity