>
>  Did you check with MAT? Also you may try to verify this theory by 
> forcing process termination with System.exit.
>
> I've doing that since half hundred of versions ago, more or less, so I am 
> pretty sure about it.
>
 
No you don't only you only kill on explicte exit (probably in 
onBackPressed) not in onDestroy, and as I suspected you leak as hell (like 
10MB) on activity restarts (I crashed your game with OOM on SGS2 with 128MB 
heap and on N7 with 256MB heap):

11-23 19:30:27.673: D/dalvikvm(6289): GC_BEFORE_OOM freed 24K, 2% free 
127777K/129735K, paused 54ms
11-23 19:30:27.673: E/dalvikvm-heap(6289): Out of memory on a 1536016-byte 
allocation.
11-23 19:30:27.673: I/dalvikvm(6289): "main" prio=5 tid=1 RUNNABLE
11-23 19:30:27.673: I/dalvikvm(6289):   | group="main" sCount=0 dsCount=0 
obj=0x40c80460 self=0x12988
11-23 19:30:27.673: I/dalvikvm(6289):   | sysTid=6289 nice=0 sched=0/0 
cgrp=default handle=1074959656
11-23 19:30:27.673: I/dalvikvm(6289):   | schedstat=( 6635628723 
11025881606 23463 ) utm=527 stm=136 core=1
11-23 19:30:27.673: I/dalvikvm(6289):   at 
android.graphics.Bitmap.nativeCreate(Native Method)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
android.graphics.Bitmap.createBitmap(Bitmap.java:605)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
android.graphics.Bitmap.createBitmap(Bitmap.java:585)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
com.badlogic.androidgames.framework.impl.AndroidGame.onCreate(AndroidGame.java:182)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
com.marzoa.ruletafree.RuletaAfortunadaGame.onCreate(RuletaAfortunadaGame.java:19)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
android.app.Activity.performCreate(Activity.java:4470)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1052)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1931)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
android.app.ActivityThread.access$600(ActivityThread.java:127)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
android.os.Handler.dispatchMessage(Handler.java:99)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
android.os.Looper.loop(Looper.java:137)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
android.app.ActivityThread.main(ActivityThread.java:4511)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
java.lang.reflect.Method.invokeNative(Native Method)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
java.lang.reflect.Method.invoke(Method.java:511)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
11-23 19:30:27.678: I/dalvikvm(6289):   at 
dalvik.system.NativeStart.main(Native Method)

--
Regards,
Bart

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to