4 ms·
Not an Android Developer here. Is there no "pauseForGC" function in Java/Android? I know AS3 has it, and you can use it to suggest GC at a point where there are
by neals 12y ago
Not an Android Developer here. Is there no "pauseForGC" function in Java/Android? I know AS3 has it, and you can use it to suggest GC at a point where there aren't any animation going on.
- tpaksoy 12y agoYou can use the System class to do this. "System.gc()" will request a GC run. Of course, its only a request. There's no guarantee when, and if the GC will fulfill that request.
- rohan404 12y agoThere is a System.gc() call which is essentially what you described, but it doesn't help with allocations freezing the UI for memory intensive applications