Re: [android-developers] Memory problem with UI elements

2010-09-01 Thread Shashidhar
On Wed, Sep 1, 2010 at 7:25 PM, Mark Murphy wrote: > On Wed, Sep 1, 2010 at 9:48 AM, Shashidhar > 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"? > Y

Re: [android-developers] Memory problem with UI elements

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 9:48 AM, Shashidhar 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"? > Now my > question is why doesn't the GC collect the stale layout obje

[android-developers] Memory problem with UI elements

2010-09-01 Thread Shashidhar
Hi, In my application I change layouts very frequently with most of the user interactions. Each time when a new layout is drawn, the applications memory size is increasing. I can see this in DDMS. This is absolutely fine. I have analyzed my application with memory analyze tool and it shows that t