how I can pop specific fragment from stack and remove others from a fragment? for example these are my fragments and I\'m in E right know.
A-> B -> C -> D ->E
You can call the function below while you are in Fragment E:
Fragment E
getFragmentManager().popBackStack("tag", 0);
Here the tag is string passed as tag while adding fragment B to backstack.
tag
fragment B
backstack