Don't use the static adapter. There are better (safer) ways to access your fragments from it's parent Activity
.
I'm assuming you add your fragment dynamically by using something like this:
FragmentManager fragmentManager = getFragmentManager();
fragmentManager
.beginTransaction()
.add(R.id.fragment_container, new FragmentOne())
.commit();
And same for fragment two.
In order to have a reference to those Fragment
you need to add a tag when you create them. Very simple, just add one line to your existing code:
FragmentManager fragmentManager = getFragmentManager();
fragmentManager
.beginTransaction()
.add(R.id.fragment_container, new FragmentOne(), "fragmentOneTag")
.commit();
And then whenever you want to get your fragment do this:
FragmentManager fragmentManager = getFragmentManager();
FragmentOne fragmentOne = fragmentManager.getFragmentByTag("fragmentOneTag");
fragmentOne.refreshList(); //Define this method in your class and from there refresh your list
That's it