Code example for DialogFragment

Methods: onCreate, getActivity, getArguments, setRetainInstance