Hi,
On android when the device sleeps on an idle timeout, it wakes up fine where the game last left off.
When it suspends it restarts the game with a ‘resume’ event. Suspend happens when you get a phone call OR use the power button to put the device to sleep OR wake it.
I’m not interested in handling the suspend event as its quite complicated to save and reload all my resources in exactly the same place, but at a minimum sleep needs to work.
On the Nexus on however, the only way to wake the device from sleep is to use the power button which actually triggers a ‘resume’ and restarts the game
setidletimer isnt working on android either, so I cant event prevent sleep totally - which would be an acceptable solution.
At present my game is not really releasable in this state. On my Nexus one for example I use a idle time of 1 minute and if i put the phone down to quickly do something else, it ruins my game experience when i come back to find it asleep and the game restarted.
Any ideas at all how to deal with this? Disabling the sleep timer would be good enough [import]uid: 8872 topic_id: 6178 reply_id: 306178[/import]