What Mark said. Also, there's a "force GC" button in ddms, so you could try that to see that once you hit back and run the GC your heap changes.
Xav On Thu, Apr 15, 2010 at 9:24 AM, Mark Murphy <[email protected]> wrote: > jamesc wrote: >> Thus, I would have expected onDestroy() to free >> allocs? > > onDestroy() does not "free" anything. > > At most, onDestroy() will remove some references to an Activity. Once > all references to the Activity are gone, on some future garbage > collection pass, the memory will be released. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Android Training in NYC: 30 April-2 May 2010: http://guruloft.com > > -- > 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 > > To unsubscribe, reply using "remove me" as the subject. > -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- 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

