August 21st, 2012, 09:40 AM
|
#4 (permalink)
|
|
eschew obfuscation
Join Date: Jun 2010
Location: Douglas, MA
Gender: Male
Posts: 14,541
Device(s): OG Droid, DroidX2, HTC Rhyme, Kindle Fire, Galaxy Nexus, Nexus 7 (8GB & 16GB)
Carrier: VZW
Thanks: 7,173
Thanked 8,130 Times in 4,639 Posts
|
It would depend on the game, what else is running on the phone, and if Android needs to free up memory for something else.
The game should determine on its own what to do when the phone enters sleep with regards to saving the state. If you leave the game to say go answer a text or phone call, that may activate other activities which could push the game off the stack of cached apps (again, up to the game to determine how to handle saving its state). If you turn off the screen and just leave it, it could be a background sync of say email, Fakebook or the device polling the network that could again, require Android to push the game into deep sleep. This last one would most likely explain why sometimes it can sleep for 2 seconds and others 30 minutes. In all cases, though, it is up to the developer of the game to determine how it will handle the device being put to sleep.
One final thought, though it doesn't sound like you are using one, it any task killer (or force closing through the system) would prevent the game from being able to take this step. Just another reason to avoid automatic task killers.
|
|
|