Whether system.gc will avoid android's out of memory exception for bitmap?
2
- 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– EboMike2010-12-31 10:14:36 +00:00Commented Dec 31, 2010 at 10:14
- i have found that System.gc() brings improvement with rather big bitmaps but you can not rely on it.mad– mad2010-12-31 13:00:42 +00:00Commented Dec 31, 2010 at 13:00
Add a comment |