开发者

Is it possible to call GC in Android?

开发者 https://www.devze.com 2022-12-08 06:17 出处:网络
I am wond开发者_如何转开发ering if there is a way to call gc from code, hopefully to free some memory.You can request it with

I am wond开发者_如何转开发ering if there is a way to call gc from code, hopefully to free some memory.


You can request it with

System.gc();

Although the important note is this is only a request. There is no guarantee that the GC will run.

0

精彩评论

暂无评论...
验证码 换一张
取 消