Code example for DialogFragment

Methods: dismissonCreate, getActivity, getArguments