i'm currently working on browser app for an android. I'm managing new tabs with fragments. So everything is working fine when user open new tab B, and then go back again to tab A. The problem appear when from A he try to go back again to B. With other words its not working when you tries to pop back same fragment for the second time.
This is how I'm adding new tabs- fragments
android.app.Fragment f1 = new FragmentHolder();
allFragments.add(f1);
getFragmentManager().beginTransaction().replace(R.id.fragmentContainer, f1).addToBackStack(fragmentTags[allFragments.size()-1]).commit();
and here how I'm popping back the fragment
boolean chkFlag = getFragmentManager().popBackStackImmediate(currentTag.getFragmentTAG(),0);
I appreciate your help in advance.