Code example for DialogFragment

Methods: onActivityCreated, getActivity