My main activity has a viewpager with 3 fragments. In fragment1 I have a recyclerview that shows some information. Back into my main activity I have a searchview, my question is how can I pass the information from my mainactivity to the fragment1 so I can update my recyclerview based on what the user put in the searchview.
I already have the searchview and the listener with onQueryTextSubmit and onQueryTextChange methods to get the string from the searchview
Thank you.