Android Community
Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16

Thread: how exactly do u close an app?

  1. #11
    konzern's Avatar
    konzern is offline *sigh*... I think I'll go spend some time with the family
    Join Date
    Mar 2009
    Location
    RGV, Texas
    Posts
    4,250

    Default Re: how exactly do u close an app?


    lol bringing threads back from the dead are we?
    CM 4.2.1 | 112 apps | Apps2SD | S9HD| 6GB/1.4GB ext3| 50MB Free Internal Mem. | Ted's Hero Theme
    http://twitter.com/jamezMtzTwitter
    http://facebook.com/jmartinez0587Facebook
    http://androidcommunity.com/forums/f...de-easy-11825/ THE FASTEST AND EASIEST WAY TO ROOT

  2. #12

    Default Re: how exactly do u close an app?

    Quote Originally Posted by Stanovoy View Post
    In short, you need to keep on hitting the back button until it backs itself out to the home screen.

    Long explanation:
    1. If a program is doing something, then it will continue to run in the background.
    2. If the program stops doing stuff and it is no longer in the foreground, Android keeps it in "hibernate" mode (in Windows terms). In other word, the system memory state of the program is dumped to storage memory.
    3. When the program is loaded again, Android looks to see if there is an instance of that program hibernating. If so, it will load the hibernating instance; otherwise, a fresh new instance.
    4. Android treats almost all applications as web pages, unless specifically told not to. What I mean is it keeps "browsing history" for each application so that when you hit "back," you would be returned to the previous state of the application, just as if you hit "back" in a browser.
    5. Putting everything together, what this means is that if you simply hit the home button, you might not be erasing the history portion of the application. This over time will kill your system memory.

    You can try this out by going into Google Talk, keep on starting and closing conversations with people on your list. After a while, try hitting the "back" button and see if Android brings you back to the list of the 4 chat clients. It won't. In fact, it will act as if you have not pressed anything. The reason is the previous state of Google Talk probably looks identical to the one you are navigating away from. Keep hitting the "back" button and you might see some interesting things, i.e. people who you know are offline would suddenly come online. You probably have to hit the button a dozen times before it finally exits you out. At this point, the memory dump for Google Talk is likely to be a lot smaller than if you hit the "home" button directly.

    So you see, if you keep on using the "home" button, it won't take long before both your memory and your battery get depleted, not to mention at some point opening up a hibernating app would instantly cause your G1 to crash and reboot.
    However, a functional user is going to use the Home button like crazy, and so a developer HAS to take that into consideration.

    I found that even with using the
    Code:
    'finish();'
    command, when the Home button is used, an instance of my application is saved in memory.

    When my application is opened again, it starts from the beginning. However, if another "saved" instance exists in memory, when I click on the "Quit" option in my menu selections, which executes
    Code:
    'finish();'
    for each level of activities called in my application, the previously "saved" instances of my application are resumed after the newly begun instance of the application exits.

    If you find my above explanation confusing, then you can relate to how confusing it is becoming troubleshooting how to effectively "close" an application.

    So far, it seems the only way to close an application is to make sure each activity is closed in the application, and to do that, every event that can interrupt and pause the application must be individually handled, so that
    Code:
    'finish();'
    is called, and memory objects are cleaned for each open activity in the application.

  3. #13
    Join Date
    Nov 2010
    Posts
    1

    Exclamation Re: how exactly do u close an app?

    There's an Open Advanced Task Killer. I use it on my HTC Wildfire that has an Android 2.1 (or 2.2, can't remember). Anyway, it shows you all the open applications and you can tick the ones you want to close . Just click the Kill all apps to do a massacre!

  4. #14
    Join Date
    Dec 2010
    Posts
    1

    Default Re: how exactly do u close an app?

    i just use super manager and battery toggle these r help u kill app and manage screen brightness ,bluetooth and wifi

  5. #15
    Join Date
    Dec 2010
    Posts
    13

    Default Re: how exactly do u close an app?

    Quote Originally Posted by anyways View Post
    I though by going back to home an app will automaticly close, but I was wrong, it actually suck ur memory to death and I can't seem to find that sweet X that u see in windows window.

    Hey,

    It's not like Windows. You don't need to 'close' apps; the OS will look after that for you while manages resources. If you're concerned that battery is an issue because of everything that is running, try installing Green Power app from the market. Check out this explanation:

    http://computersight.com/computers/h...er-app-review/

  6. #16
    Join Date
    Dec 2011
    Posts
    1

    Default Re: how exactly do u close an app?


    Here it is.....

    Go to Settings -> Applications -> Manage applications -> Running(icon at the top right corner of your screen). Close the applications from there.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. How do you Close an App?
    By Ikkuma in forum General HTC Chat
    Replies: 26
    Last Post: 06-04-2009, 08:27 AM
  2. Does Meebo just close for anyone else?
    By pllb in forum All About Andorid Software
    Replies: 11
    Last Post: 11-07-2008, 06:04 PM
  3. how to close apps
    By sidebrake in forum All About Andorid Software
    Replies: 11
    Last Post: 11-07-2008, 11:49 AM
  4. Close browser
    By robmpulse in forum General HTC Chat
    Replies: 3
    Last Post: 10-22-2008, 10:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •