[android-developers] Re: Fragments navigation and backstack issue

2013-08-19 Thread user123
Hi, thanks. This is not quite what I need, but the OnBackStackChangedListener could be useful. I ended just enabling the default behaviour of letting the backstack increase endlessly when the user switches screens with the navigation. Somebody in StackOverflow adviced this, in order to not

[android-developers] Re: Fragments navigation and backstack issue

2013-08-04 Thread Nobu Games
Hi! I remember the pain with fragments and the back stack while working on an app last year. My solution was the following. In the activity's onCreate method I would do the following: FragmentManager fm = getSupportFragmentManager(); fm.addOnBackStackChangedListener(new