Code example for DialogFragment

Methods: getActivity, getArguments