hi how to clear fragment back stack am using below logic it\'s not working...
for(int i = 0; i < mFragmentManager.getBackStackEntryCount(); ++i) {
The best option I ever seen is here.
int count = getSupportFragmentManager().getBackStackEntryCount(); if (count > 0) { getSupportFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE); }