Whether system.gc will avoid android's out of memory exception for bitmap?
Asked
Active
Viewed 806 times
0
-
No, it won't. A gc is done automatically if memory is low. Btw, this problem has been discussed many times. If you have this problem in a debugger only, it's a known problem with memory leaks through exceptions. If not, then you're leaking bitmaps, or using too large bitmaps. – EboMike Dec 31 '10 at 10:14
-
i have found that System.gc() brings improvement with rather big bitmaps but you can not rely on it. – mad Dec 31 '10 at 13:00