Wednesday, March 30, 2011

[android-developers] References to Fragments and memory footprint

Is keeping a reference to fragment that has been removed an anti-
pattern?

If the Fragment is on the backstack it seems like I have observed that
the system can GC fragments and create them later when needed. So if
the Activity keeps a reference to a removed Fragment does it inhibit
that GC?

Trying to understand what the best practice is, and application
designs to avoid (if any).

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate