[android-developers] Re: Out of memory after executing application several times

2010-10-07 Thread caxton
I found that I do not set all reference to null before System.gc(). Your suggestions are useful, too. Thanks a lot!! Regards, Caxton On 10月6日, 上午2時16分, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: Caxton, You are allocating 4.25MB each time. You have to remember that activities do

[android-developers] Re: Out of memory after executing application several times

2010-10-05 Thread Daniel Drozdzewski
Caxton, You are allocating 4.25MB each time. You have to remember that activities do not disappear instantly after you close them and that GC does happen at the system's discretion, so it can take time too. Did you try overloading *onLowMemory()* in the activity that is active during this

[android-developers] Re: Out of memory after executing application several times

2010-10-04 Thread Kumar Bibek
You might be holding on to the memory allocated even after your app is closed. Check you memory allocations. That should give you a hint. -Kumar Bibek http://techdroid.kbeanie.com On Oct 5, 9:49 am, caxton kaifu.c...@gmail.com wrote: HI, There is a strange out of memory error issue. I create