【发布时间】:2011-12-17 06:25:10
【问题描述】:
我使用andengine 开发游戏。在 J2me 游戏中退出时,我将所有对象设为 null
即:
Image img;
Sprite s1;
When exit application ,
img=null;
s1=null;
在 android 中我将使用 System.gc() 或者我需要在退出应用程序时将所有纹理、textureRegion 和 sprite 设为 null ?
【问题讨论】:
-
您在退出时不需要这样做。
标签: java android garbage-collection andengine