1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

Question about exiting apps


Last Updated:

  1. carlspeed

    carlspeed Active Member This Topic's Starter

    Joined:
    Jun 18, 2010
    Messages:
    28
    Likes Received:
    4
    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.
     

    Advertisement
  2. HunterJohnson

    HunterJohnson Well-Known Member

    Joined:
    Jan 4, 2010
    Messages:
    51
    Likes Received:
    2
    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.
     
  3. rtb35

    rtb35 Well-Known Member

    Joined:
    Jun 2, 2010
    Messages:
    521
    Likes Received:
    131
    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.
     
  4. lexluthor

    lexluthor Well-Known Member

    Joined:
    May 15, 2010
    Messages:
    4,161
    Likes Received:
    402
  5. nightfishing

    nightfishing Well-Known Member

    Joined:
    May 2, 2010
    Messages:
    588
    Likes Received:
    111
    Unless a particular app is misbehaving, the best solution (for performance and battery life) is to let Android manage the apps.
     
    carlspeed likes this.
  6. carlspeed

    carlspeed Active Member This Topic's Starter

    Joined:
    Jun 18, 2010
    Messages:
    28
    Likes Received:
    4
    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.
     
  7. KlaymenDK

    KlaymenDK Well-Known Member

    Joined:
    May 29, 2009
    Messages:
    1,217
    Likes Received:
    130
    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).
     
    ive1590 and carlspeed like this.
  8. lexluthor

    lexluthor Well-Known Member

    Joined:
    May 15, 2010
    Messages:
    4,161
    Likes Received:
    402
    Is that actually documented anywhere? Truth or myth?
     
  9. KlaymenDK

    KlaymenDK Well-Known Member

    Joined:
    May 29, 2009
    Messages:
    1,217
    Likes Received:
    130
    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. :)
     
    jarniella likes this.
  10. hrbib21

    hrbib21 Well-Known Member

    Joined:
    Nov 24, 2009
    Messages:
    878
    Likes Received:
    34
    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.
     
  11. othgar

    othgar Well-Known Member

    Joined:
    Mar 7, 2010
    Messages:
    106
    Likes Received:
    6
    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.
     
  12. KlaymenDK

    KlaymenDK Well-Known Member

    Joined:
    May 29, 2009
    Messages:
    1,217
    Likes Received:
    130
    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. :eek:
     
  13. dr g

    dr g Well-Known Member

    Joined:
    Jun 7, 2010
    Messages:
    589
    Likes Received:
    187
    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.
     
  14. takeshi

    takeshi Well-Known Member

    Joined:
    Dec 6, 2009
    Messages:
    3,354
    Likes Received:
    281
    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.
     
  15. InstantKarma

    InstantKarma Well-Known Member

    Joined:
    Dec 16, 2009
    Messages:
    987
    Likes Received:
    146
    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).
     
  16. WozzaTT

    WozzaTT Well-Known Member

    Joined:
    Jun 12, 2010
    Messages:
    221
    Likes Received:
    11
    So I'm still not clear - should we press the back button when exiting an app or is pressing the home button fine?!
     
  17. KlaymenDK

    KlaymenDK Well-Known Member

    Joined:
    May 29, 2009
    Messages:
    1,217
    Likes Received:
    130
    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". :p
     
    WozzaTT likes this.
  18. jarniella

    jarniella New Member

    Joined:
    Jun 18, 2010
    Messages:
    3
    Likes Received:
    0
    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
     
  19. frankbonatelli

    frankbonatelli Well-Known Member

    Joined:
    May 13, 2010
    Messages:
    203
    Likes Received:
    30
    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.
     
  20. ive1590

    ive1590 New Member

    Joined:
    Aug 23, 2012
    Messages:
    1
    Likes Received:
    0
    Helpful info.
     
  21. Sandbob

    Sandbob Member

    Joined:
    Jul 18, 2010
    Messages:
    16
    Likes Received:
    0
    Does anyone know if there is a way to enlarge the font on k-9 mail. I am having trouble reading the small print. I am only one week out with the Galaxy 111 s and have so many questions, but I'll start there. This is my first smartphone, so bear with me. Thanks so much.:confused:
     
  22. Sandbob

    Sandbob Member

    Joined:
    Jul 18, 2010
    Messages:
    16
    Likes Received:
    0
    I am also having trouble with the stock email on my Galaxy111s. It will only sinc emails up to "yesterday". I must have done something wrong during the set up or the settings. Any info appreciated.
     

Share This Page

Loading...