how to pass getintent in activity to fragment in android 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();