there isn't such a feature which you want, in api . Android remove all stacks unfortunately. :(
23 Temmuz 2012 Pazartesi 22:41:23 UTC+3 tarihinde Paul Robinson yazdı: > > Ok I'm guessing I'll have to go into the compatibility library and > implement such a feature myself then. > :( > > On Saturday, 14 July 2012 22:23:50 UTC+1, Niffy Shibby wrote: >> >> I have a problem of managing fragments. (Using Support Package, revision >> 9 (June 2012)) >> >> I have an activity with 2 fragments on the screen. If I add fragment A, >> then add Fragment B, then destroy fragment A Fragment B is also destroyed. >> >> I'm managing fragments this way (there is the begin and commit lines) >> >> *add* >> ft.add(location, fragment, tag); >> ft.addToBackStack(tag); >> >> *Remove* >> >> this.mFragmentManager.popBackStack(tag,FragmentManager.POP_BACK_STACK_INCLUSIVE); >> ft.remove(fragment); >> >> This works quite well, my back stack gets cleaned, bar this little quirk. >> I've no idea how I can simply remove a single fragment from the backstack, >> as popping the backstack removes everything below that fragment. Any ideas >> or am I'm just being thick? >> > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/dbed9ccb-ff9a-487a-8d4f-84f9fe98c64b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

