Code example for DialogFragment

Methods: setCancelable, getActivity, getArguments