[ACCEPTED]-Android: Remove ALL FragmentTransactions from the back stack-android-fragments
Accepted answer
If you add many Fragments to the backstack 1 and want to remove them all you can do this: popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE)
Just remove them from the backstack using 4 the popBackStack()
methods.
Each fragment you pop is exactly 3 the same as if the user had pressed the 2 BACK
button, and you don't do any special cleanup 1 when the BACK
button is pressed, right?
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.