Hi folks, I'm currently working on games that is killed when the device turn to sleep mode (with lock screen)
09-10 10:34:50.956: W/SurfaceView(8052): CHECK surface infomation creating=false formatChanged=false sizeChanged=false visible=false visibleChanged=true surfaceChanged=true realSizeChanged=false redrawNeeded=false left=false top=false 09-10 10:34:50.966: D/SensorManager(8052): unregisterListener:: handle = 5 Listener= com.unity3d.player.h@41aa21e8 name = MPL magnetic field 09-10 10:34:50.966: D/Unity(8052): onDetachedFromWindow 09-10 10:34:50.966: I/Sensors(8052): sendDelay --- 200000000 09-10 10:34:50.966: D/SensorManager(8052): JNI - sendDelay 09-10 10:34:50.966: I/SensorManager(8052): Set normal delay = true 09-10 10:34:50.966: D/SensorManager(8052): unregisterListener:: handle = 5 Listener= com.unity3d.player.h@41aa21e8 name = MPL magnetic field 09-10 10:34:50.966: I/Sensors(8052): sendDelay --- 200000000 09-10 10:34:50.966: D/SensorManager(8052): JNI - sendDelay 09-10 10:34:50.966: I/SensorManager(8052): Set normal delay = true 09-10 10:34:50.966: D/SensorManager(8052): unregisterListener:: disable all sensors for this listener, name = MPL accel listener = com.unity3d.player.h@41aa21e8 09-10 10:34:51.656: W/IInputConnectionWrapper(8052): getExtractedText on inactive InputConnection 09-10 10:34:54.099: I/Process(8052): Sending signal. PID: 8052 SIG: 9 This is an extract of the logCat where we can see the signal 9 (kill) few seconde after the phone switched to sleep mode. Obviously the app does not resume when user unlock the phone. The main problem is, I don't know where to start to search in my code to prevent this issue. Presently I add some code (Screen.SleepTimeout to -1) to keep device on while the game is playing. But it's not enough, I have to fix that bug :( Thanks in advance -- 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

