eclipse - android - Heap Size Increasing per activity -
in android game, have activities, 1 of them has opengl view. problem each time switch between activities, used heap memory doesn't free up, example after 10-20 times switching between activities in phones, application crashes , close.
i have structure code switching between every activity:
intent = new intent(worldchose.this, mainmenu.class); startactivity(it); overridependingtransition(r.anim.from_middle, r.anim.to_middle); finish();
i have searched lot, says android should free unused memory , shouldn't worry it, seems it's not doing job in case!
what should do?
if isn't freeing memory eventually, have leak. i'd objects registered os, async tasks or threads, or else may stay around after death of activity has references activity.
Comments
Post a Comment