java - Out of Memory when Switching Activities -
i'm making android app menu activity , game activity. switching menu game , menu works, try go game activity, out of memory error. game activity loads in few bitmaps, in onstop() method game activity tried recycling bitmaps, calling finish(),and calling gc(), none of worked, still out of memory error when try switch game activity. i've tried researching far haven't found helps. there way fix , ensure game activity released memory when closed?
outofmemory error occurs when application did not enough memory proceed object allocation. check memory size given application since using bitmap memory consumption might more. please increase memory limit , check behavior.
Comments
Post a Comment