As topic states I'm trying to implement swipable tabs using Fragments and ActionBar. I've iplemented it successfully using ActionBarSherlock and code from examples with the TabsAdapter class (subclass to FragmentPageAdapter). Some of the fragments should be able to show a new tab in the same tab spor, and this is where the problem arises. I really can't figure out how to replace a fragment in the pager with a new one. I've googled and tried out a lot of stuff.
I can replacie the fragment in the internal collection holding the fragments classes inside the FragmentPageAdapter, thus making the new Fragment available to the getItem method but that doesn't do it as I can't figure out how to update the pager to show the new Fragment. Even after switching to another Tab and going back I still get the old Fragment which I suppose is being cached somewhere by the pager. So is there a way to notify an update to the pager?
Maybe I should just forget using FragmentPageAdapter ? In that case what is the right way to get all this functionallity happen?
P.S. If you want to see my code let me know, but it's basicly the same as in the examples and the problem is more general I think