I have a problem about removing a specific fragment from back stack.My scenario is like this.Fragment-1 is replaced with Fragment-2 and then Fragment-2 is replaced with Frag
for (int i = 0; i < mFragmentManager.getBackStackEntryCount(); i++) { currentFragment = mFragmentManager.getFragments().get(i); if (!(currentFragment instanceof ParticularFragment)) mFragmentManager.popBackStack(); else break; }