Go Back   Android Forums > Android Discussion > Android Applications
Android Applications All the information you could ever want about Android Applications. Learn about apps and get help with them... all here! New apps can be found and announced in the Applications Announcements forum linked below.
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

Like Tree1Likes
  • 1 Post By Unforgiven

test: Reply
 
LinkBack Thread Tools
Old August 21st, 2012, 07:33 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Aug 2010
Posts: 10
 
Device(s): T-Mobile G2 Touch (HTC Hero)
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Stopping standby resetting a running app?

I've looked on numerous occasions for this, as its extremely annoying, finally decided to ask about it.

Say I'm playing a game and need to go do something, I'll go into standby with the power button so the phone can be safely put in my pocket.

When I come back, that game may or may not be exactly where I left it (half way through a level say).
Sometimes I can go into standby for only 2 seconds, and it's already reset and reloads the app from scratch!
Other times I can leave it on standby for 30 mins or more and it comes back on exactly where I left it.

I want it to always carry on where I left it - is there any way of making it always do the latter? Maybe with a 3rd party app?

CreepyD is offline  
Reply With Quote
Sponsors
Old August 21st, 2012, 08:12 AM   #2 (permalink)
Senior Member
 
chanchan05's Avatar
 
Join Date: Jun 2011
Posts: 9,258
 
Device(s): Samsung Galaxy SL (I9003), Samsung Galaxy Tab 7.0 Plus (P6200), Samsung Galaxy SIII mini (i8190)
Carrier: Not Provided

Thanks: 105
Thanked 1,775 Times in 1,511 Posts
Default

Depends on the game I think. Some games may not have permission for "keep phone awake", which means the phone goes into sleep mode and unloads the game.
__________________
------------------------------

SugarSync and DropBox Referrals
SugarSync (gives 5gb free on registration)
DropBox (gives 2gb free on registration)
chanchan05 is offline  
Reply With Quote
Old August 21st, 2012, 09:15 AM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Aug 2010
Posts: 10
 
Device(s): T-Mobile G2 Touch (HTC Hero)
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

The thing is I'm using just 1 game as my example above.
That same game could let me put the phone on standby for only 2 secs or over sometimes 30 mins (although it's more often on the shorter end), so it's unfortunately not totally related to a particular game I would think.

If it's of any use I'm on a Galaxy S2 with 4.0.4
CreepyD is offline  
Reply With Quote
Old August 21st, 2012, 09:40 AM   #4 (permalink)
eschew obfuscation
 
Unforgiven's Avatar
 
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
Default

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.
Crashdamage likes this.
__________________

If someone helped, hit Thanks, if you see rude or abusive posts, spam, or threads that need staff attention, hit Report.
Site Rules / Android Forums FAQ
*** Check out the new AF forum app!!! ***

I'm supporting BabyBlues with this. Please consider this worthy cause. Details

Unforgiven is offline  
Reply With Quote
Old August 22nd, 2012, 02:37 AM   #5 (permalink)
New Member
Thread Author (OP)
 
Join Date: Aug 2010
Posts: 10
 
Device(s): T-Mobile G2 Touch (HTC Hero)
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

That does make sense, so there's nothing I can really do about it.
I don't use a task killer since the one built in does a good enough job when I call upon it.
CreepyD is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Discussion > Android Applications
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:09 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.