Football Fans: Download the 2012 Schedule App from Google Play!


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.



Reply
 
LinkBack Thread Tools
Old June 20th, 2010, 11:27 AM   #1 (permalink)
Junior Member
 
carlspeed's Avatar
 
Join Date: Jun 2010
Location: Tampa Bay, FL
Posts: 25
 
Device(s): HTC Evo 4g
Thanks: 9
Thanked 2 Times in 2 Posts
Send a message via AIM to carlspeed Send a message via MSN to carlspeed Send a message via Yahoo to carlspeed
Default Question about exiting apps

I've been researching the OS a bit and I can't really tell what happens to programs when you hit the home button to leave them. Do they stay running in the background? After a little bit of time does the system close them out? What happens to them? I have a Sprint Evo and I don't see a way to close them out. I know that battery life can always be helped, and I would hate to leave them running all day just sucking the life out of the phone if they don't have to be. Thanks in advance.

carlspeed is offline  
Reply With Quote
Sponsors
Old June 20th, 2010, 11:53 AM   #2 (permalink)
Junior Member
 
Join Date: Jan 2010
Location: vb
Posts: 51
 
Device(s): Eris
Thanks: 1
Thanked 2 Times in 2 Posts
Default

dont quote me but I think I read that if you use the home button they do not close right away, (not sure when they do close or if they do) but if you use the back button to exit they will close.
HunterJohnson is offline  
Reply With Quote
Old June 20th, 2010, 11:58 AM   #3 (permalink)
Senior Member
 
rtb35's Avatar
 
Join Date: Jun 2010
Posts: 521
 
Device(s): Motorola Razr XT910 Motorola Xoom MZ604
Thanks: 61
Thanked 131 Times in 106 Posts
Default

Dont quote me but as far as i can workout the android operating sysem closes down apps automatically after a certain amount of time.

If you would like to close them down yourself you can use the app "advanced task killer" which allows you to close down apps when you like.
rtb35 is offline  
Reply With Quote
Old June 20th, 2010, 05:41 PM   #4 (permalink)
Senior Member
 
Join Date: May 2010
Location: Long Island, NY
Posts: 3,275
 
Device(s): Droid X, HTC One S, Samsung Galaxy S 4G, Nook Color
Thanks: 114
Thanked 297 Times in 175 Posts
Default

Might find this interesting reading regarding the subject. Direct from the Android development team.
Android Developers Blog: Multitasking the Android Way
lexluthor is offline  
Reply With Quote
The Following 6 Users Say Thank You to lexluthor For This Useful Post:
carlspeed (June 21st, 2010), frankbonatelli (June 23rd, 2010), jarniella (June 23rd, 2010), netcrack (June 23rd, 2010), rtb35 (June 20th, 2010), SwatchDog (June 22nd, 2010)
Old June 20th, 2010, 06:04 PM   #5 (permalink)
Senior Member
 
Join Date: May 2010
Posts: 585
 
Device(s): Incredible,GT 10.1
Thanks: 34
Thanked 113 Times in 83 Posts
Default

Unless a particular app is misbehaving, the best solution (for performance and battery life) is to let Android manage the apps.
nightfishing is offline  
Reply With Quote
The Following User Says Thank You to nightfishing For This Useful Post:
carlspeed (June 21st, 2010)
Old June 21st, 2010, 08:40 AM   #6 (permalink)
Junior Member
 
carlspeed's Avatar
 
Join Date: Jun 2010
Location: Tampa Bay, FL
Posts: 25
 
Device(s): HTC Evo 4g
Thanks: 9
Thanked 2 Times in 2 Posts
Send a message via AIM to carlspeed Send a message via MSN to carlspeed Send a message via Yahoo to carlspeed
Default

Thanks guys. It seemed illogical that there would be no way to really end an app if you had to. I'm cool with it closing them down on it's own. I just didn't want to pull a Windows Mobile and look at my phone in a few hours after playing with it and see that my usage is at 83% and there are 15 tasks open. If Android can manage itself fine, I would rather not screw with it. Thanks to all.
carlspeed is offline  
Reply With Quote
Old June 22nd, 2010, 03:43 AM   #7 (permalink)
Senior Member
 
KlaymenDK's Avatar
 
Join Date: May 2009
Location: Denmark
Posts: 1,215
 
Device(s): HTC Desire Z (rooted, CyanogenMod v7.1; Revoked ClockworkMod) HTC Desire (rooted, Oxygen rom; Revoke
Thanks: 29
Thanked 127 Times in 98 Posts
Default HOME vs BACK

As a general rule, exiting an app with the HOME button means "I want to return to this in a while", and exiting an app with the BACK button means "I'm done with this". Some apps may stick around in memory even if you exit with BACK, but at least the OS is aware that the program does not have any loose ends (open activities).
__________________
Don't forget to hit the "Thanks" button when someone helps you!!!
How To Ask Questions The Smart Way
-- 010\001\111 --
KlaymenDK is offline  
Reply With Quote
The Following User Says Thank You to KlaymenDK For This Useful Post:
carlspeed (June 26th, 2010)
Old June 22nd, 2010, 06:28 AM   #8 (permalink)
Senior Member
 
Join Date: May 2010
Location: Long Island, NY
Posts: 3,275
 
Device(s): Droid X, HTC One S, Samsung Galaxy S 4G, Nook Color
Thanks: 114
Thanked 297 Times in 175 Posts
Default

Quote:
Originally Posted by KlaymenDK View Post
As a general rule, exiting an app with the HOME button means "I want to return to this in a while", and exiting an app with the BACK button means "I'm done with this".
Is that actually documented anywhere? Truth or myth?
lexluthor is offline  
Reply With Quote
Old June 22nd, 2010, 07:39 AM   #9 (permalink)
Senior Member
 
KlaymenDK's Avatar
 
Join Date: May 2009
Location: Denmark
Posts: 1,215
 
Device(s): HTC Desire Z (rooted, CyanogenMod v7.1; Revoked ClockworkMod) HTC Desire (rooted, Oxygen rom; Revoke
Thanks: 29
Thanked 127 Times in 98 Posts
Default

Quote:
Originally Posted by lexluthor View Post
Is that actually documented anywhere? Truth or myth?
The BACK button explicitly tells the OS, I'm done with this.
If you don't take my word for it, here's Reto Meier of Radioactive Yak.
Quote:
In most cases the exit button simply calls Activity.finish.
This is exactly equivalent to hitting the back button. Exactly.
KlaymenDK is offline  
Reply With Quote
The Following User Says Thank You to KlaymenDK For This Useful Post:
jarniella (June 23rd, 2010)
Old June 22nd, 2010, 11:20 PM   #10 (permalink)
Senior Member
 
hrbib21's Avatar
 
Join Date: Nov 2009
Location: Murrells Inlet SC
Posts: 863
 
Device(s): HTC Incredible
Thanks: 22
Thanked 31 Times in 25 Posts
Default

And yet most apps, meaning the huge majority, continue to run after using the back button. Try a task killer like System Panel and you'll see for yourself.
hrbib21 is online now  
Reply With Quote
Sponsors
Old June 23rd, 2010, 12:41 AM   #11 (permalink)
Member
 
othgar's Avatar
 
Join Date: Mar 2010
Location: NJ
Posts: 107
 
Device(s): Motorola Droid Rooted-Liquid GB 1.42
Thanks: 17
Thanked 6 Times in 4 Posts
Default

Quote:
Originally Posted by hrbib21 View Post
And yet most apps, meaning the huge majority, continue to run after using the back button. Try a task killer like System Panel and you'll see for yourself.
I dont get why apps are handled like this. I always hear people say "just let Android manage the memory". It creates problems with home replacement apps. If there is not enough free memory LauncherPro force closes. Why do apps need to continue to run in the background?? We should not need to run a task killer.
othgar is offline  
Reply With Quote
Old June 23rd, 2010, 01:50 AM   #12 (permalink)
Senior Member
 
KlaymenDK's Avatar
 
Join Date: May 2009
Location: Denmark
Posts: 1,215
 
Device(s): HTC Desire Z (rooted, CyanogenMod v7.1; Revoked ClockworkMod) HTC Desire (rooted, Oxygen rom; Revoke
Thanks: 29
Thanked 127 Times in 98 Posts
Default

If a foreground app crashes due to a low memory error, there is a problem either with that app or the OS itself. Android is supposed to be handling the memory to ensure sufficient memory is available (as explained in the Android Developers Blog article). Maybe that app just wants more memory than is available in total, or maybe the user is running a lot of unkillable background services. I don't know.

As for "why do apps need to stick around"; you might find the opposite position interesting: why kill them before you need their resources? On Windows, Firefox got bad press for the longest time because of its huge memory footprint. It clearly didn't use all that memory, but, since nobody else was asking for it, Firefox didn't need to bother to release it. Why is it better to have unallocated memory, than to put it to (potential) use? Undue garbage collection needlessly increases the work load (=battery consumption).

I hope that makes sense (I'm not asking if you agree to the method, just if it's clear what it does)?

I'm seriously not trying to flame anyone, only trying to explain. If my words seem harsh, that's just because I'm a programmer of computers and not a wordsmith for humans.
KlaymenDK is offline  
Reply With Quote
Old June 23rd, 2010, 05:12 AM   #13 (permalink)
Member
 
Join Date: Jun 2010
Posts: 414
 
Device(s): HTC Evo 4G, Samsung Epic
Thanks: 35
Thanked 57 Times in 39 Posts
Default

I think the basic thing to understand is that apps don't "run" in the background unless they have a specific reason to. They are just essentially cached in memory once you leave them.
dr g is offline  
Reply With Quote
Old June 23rd, 2010, 08:30 AM   #14 (permalink)
Senior Member
 
Join Date: Dec 2009
Posts: 3,355
 
Device(s): Motorola Droid
Thanks: 0
Thanked 284 Times in 241 Posts
Default

Quote:
Originally Posted by othgar View Post
We should not need to run a task killer.
You don't. Read up on the matter. It's well beyond being a well-beaten dead horse on every Android forum site.

They're handy for problem apps but you're only treating the symptom rather than the actual issue.
takeshi is offline  
Reply With Quote
Old June 23rd, 2010, 10:03 AM   #15 (permalink)
Senior Member
 
InstantKarma's Avatar
 
Join Date: Dec 2009
Location: Houston, Tejas
Posts: 988
 
Device(s): HTC Evo 4G w/ Synergy rls1, B&N Nook Color w/ Miui
Thanks: 58
Thanked 141 Times in 113 Posts
Default

Quote:
Originally Posted by othgar View Post
I dont get why apps are handled like this. I always hear people say "just let Android manage the memory". It creates problems with home replacement apps. If there is not enough free memory LauncherPro force closes. Why do apps need to continue to run in the background?? We should not need to run a task killer.
I think you've got that backwards. The OS comes first, if the app can't work properly with the OS, then there's something wrong with the app (by design in the case of home replacements, IMHO).
__________________
Founder of the Society for the Prevention of Apostrophe Abuse.
InstantKarma is online now  
Reply With Quote
Old June 23rd, 2010, 10:21 AM   #16 (permalink)
Member
 
Join Date: Jun 2010
Posts: 221
 
Device(s):
Thanks: 30
Thanked 10 Times in 10 Posts
Default

So I'm still not clear - should we press the back button when exiting an app or is pressing the home button fine?!
WozzaTT is offline  
Reply With Quote
Old June 23rd, 2010, 05:00 PM   #17 (permalink)
Senior Member
 
KlaymenDK's Avatar
 
Join Date: May 2009
Location: Denmark
Posts: 1,215
 
Device(s): HTC Desire Z (rooted, CyanogenMod v7.1; Revoked ClockworkMod) HTC Desire (rooted, Oxygen rom; Revoke
Thanks: 29
Thanked 127 Times in 98 Posts
Default

Quote:
Originally Posted by WozzaTT View Post
So I'm still not clear - should we press the back button when exiting an app or is pressing the home button fine?!
It very much depends on the application, and how it was designed. Let me rephrase that: it depends on whether or not you're done with it.

If a given app has implemented state-saving, then it won't matter because the app will continue where it left off (say, editing an address book entry, then going out to an image app to adjust and set an image, then going back and finishing the contact). OTOH, many games immediately discard their state when you switch away from them, and return to the "Insert Coin" screen (as it were) when you return to them.

The stock browser is a good example; you can usually browse away and then continue it later, but if you do "too much" in between you will find your session has been reset. That's an example of state-saving, and discarding state, by the same app.
However, if you choose to "back out" of the browser (and you may sometimes experience a very long way back), your next session will definitely be a fresh one.

That's why I keep saying that choosing the BACK button amounts to telling the OS "I am done with this", and choosing the HOME button amounts to telling the OS "I (may) want to return to this in a while".

There's a difference to the application you're doing it to, but other apps (including the OS) should not need to care. You might view "available RAM" as a measure of "wasted potential".
KlaymenDK is offline  
Reply With Quote
The Following User Says Thank You to KlaymenDK For This Useful Post:
WozzaTT (June 23rd, 2010)
Old June 23rd, 2010, 06:31 PM   #18 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 3
 
Device(s):
Thanks: 2
Thanked 0 Times in 0 Posts
Default

im a newbee to andriod and found this very interesting. I have one question: i downloaded advance task killer because i didn't undersand. Now my question is, why are there apps open on the list that i have not opened? example City ID. i never use it and am wondering how it opened. same thing with voice dialer.

TIA
jarniella is offline  
Reply With Quote
Old June 23rd, 2010, 07:32 PM   #19 (permalink)
Member
 
frankbonatelli's Avatar
 
Join Date: May 2010
Location: Kelowna, BC Canada
Posts: 203
 
Device(s): Motorola Droid PRO
Thanks: 24
Thanked 30 Times in 26 Posts
Send a message via Yahoo to frankbonatelli randy.lloyd
Default

Quote:
Originally Posted by lexluthor View Post
Might find this interesting reading regarding the subject. Direct from the Android development team.
Android Developers Blog: Multitasking the Android Way
As a long long time Linux user this little bit of reading makes great sense and clears up a lot of different user driven myths for me. It and they (Android and Dev teams) are smarter then me and should know better the needs of the system.

Gonna try life with out any task managers now. I already ditched all extra home apps in favor of just using what I bought. So far this has work well for me, all tho I am missing the extra screens.

All in the pursuit of better longer battery life.
__________________
"People not things effect change."
Steve needs to learn this, ditch the iPhone for an open world.
Android - Linux for the people.
The Techno Mage

Moto D PRO | HTC DhD | NOOK COLOR cm7bt
frankbonatelli is online now  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Discussion > Android Applications User CP
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
exiting a game cultor HTC Desire 3 May 9th, 2010 04:02 PM
Apps exiting back to home screen automatically? armoredsaint HTC Droid Incredible 1 May 3rd, 2010 03:09 PM
Closing/exiting apps CXXV HTC Droid Eris 4 April 4th, 2010 09:14 PM
Exiting Apps marka87uk HTC Hero 20 October 14th, 2009 12:42 PM



All times are GMT -5. The time now is 04:27 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo