Detect when device goes to sleep?
Monkey Targets Forums/Android/Detect when device goes to sleep?
| ||
We're switching over from 'prevent device sleeping' to 'respect device timeout settings' with our game, but the game isn't suspending when the device sleeps (screen timeout). Probably being stupid, but I can't find anything in Monkey that would respond to this. Might also be a problem on iOS - not checked yet. |
| ||
OnSuspend isn't working for you? bouncyaliens has example. http://www.monkey-x.com/docs/html/Modules_mojo.app_App.html#OnSuspend |