// add the getActivity() before getIntent and it should work perfectly // inside your fragment Bundle bundle = getActivity().getIntent().getExtras();