140620

getActivity is going to be null here. You should move setting the listener into onAttach (reference to activity is passed, getActivity() still returns null), or onActivityCreated - getActivity() will return valid reference