Obtenga la intención de no funcionar en fragmento

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