On Wed, Sep 1, 2010 at 7:25 PM, Mark Murphy <[email protected]> wrote:
> On Wed, Sep 1, 2010 at 9:48 AM, Shashidhar <[email protected]> > wrote: > > In my application I change layouts very frequently with most of the > user > > interactions. > > Do you mean you call setContentView() repeatedly? Or how do you > "change layouts"? > Yes, I cal setContentView() repeatedly. > > > Now my > > question is why doesn't the GC collect the stale layout objects. > > Because something is holding onto them. If you cannot identify what is > holding onto them, you can use DDMS to dump an HPROF file of the > objects in your process' heap. There are several tools to help you > examine that HPROF file: > > http://stackoverflow.com/questions/185893/how-do-i-analyze-a-hprof-file > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android App Developer Books: http://commonsware.com/books > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- 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

