I'm writing an app where I'm using fragments, and I'm seeing a really confusing behavior in my DDMS heap dumps: When I initially run my application, let's say there are a couple of fragments in the stack:
HomeFragment: 1 WelcomeFragment: 1 SignInFragment: 1 CreateAcctFragment: 1 The immediate dominator for each of these is <ROOT>. Then I rotate the screen. I now get: HomeFragment: 2 WelcomeFragment: 2 SignInFragment: 2 CreateAcctFragment: 2 Now the immediate dominators for each instance are <ROOT> for one and android.support.v4.app.FragmentManagerImpl for the other. I initially thought I had a memory leak, that one of my fragments was not being garbage collected, as that had happened to me before. However, in that case every time I rotated the screen I added one more instance of each. Now no matter how many times I rotate the screen, I "only" see 2 instances of each. Any thoughts/suggestions? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

