view intent is not working if the app working android studio code example
Example: get intent not working in fragment
// add the getActivity() before getIntent and it should work perfectly
// inside your fragment
Bundle bundle = getActivity().getIntent().getExtras();