1

Android Nested Fragments Issue "java.lang.IllegalStateException: Activity has been destroyed"

view story
linux-howto

http://stackoverflow.com – As you might know Android supports Nested Fragments, also via support library with API level 17. So basically I'm trying to add nested fragments into one of the ViewPager's fragments and get familiar with this new nice feature. Everything works as expected at the first app launch i.e I can add child fragments, navigate through those fragments, handle the back stack etc.. But the problem is that when I leave the app by clicking Back button and relaunch the app, I got the following exception most of the time, not always : java.lang.IllegalStateException: Activity has been destroyed at an (HowTos)