Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

This question already has an answer here:

Whenever I'm done with an application, I always exit using the back button. Somehow applications like Viber, WhatsApp, Facebook, Videos, Email, Google Maps, etc keep restarting on their own.

I have tried:

  • Using a task killer
  • Force stopping the apps in the settings menu
  • Killing them using watchdog

...but they still restart. Any idea how to solve this problem?

share|improve this question

marked as duplicate by eldarerathis Mar 31 '13 at 4:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Why do you want to exit the app in first place? –  roxan Dec 14 '11 at 9:01
    
If im done with facebook or whatsapp, would it not be better to exit the app. –  Suren Dec 14 '11 at 11:02

2 Answers 2

Let me first say: Do not use task killers. You are only making the problem worse. Why? Let me explain how the Android OS works.

Unlike normal OSes, Android does not actually let you "close" an application. You can leave the application, but that doesn't mean it has "closed" or "killed" it. This is because of multi-tasking: when you leave an application, you can come back to it as you were previously.

Instead, the Android OS handles the "killing" or "closing" of applications for you. It keeps track of a) how much free memory there is and b) how long it has been since you've opened that app. When memory is running low, Android will garbage collect and kill any unused applications. Android's OS task killer is very smart and can handle these situations far better than an Android Task Killer app that just kills apps left and right without any "logic" behind it.

Now, when you leave an application via back button or home, this doesn't mean the app is necessarily still running, just that it remains in memory. The only time an app will run is a) it is in the foreground or b) it has a background service.

In your case, it sounds like you are trying to kill background services. When you do so, the app will just go "oh hey, my background service is running any more, let's start it back up!" And you will then be playing a game of whack-a-mole. You'll be wasting resources and battery life because applications will be re-starting themselves. And if an application was writing to disk (your SD card) at the time you killed it, then you could end up with corrupted files and other issues. Rare, but it could happen.

The only need for a task killer is to stop an erroneous application in one-time situations. That's what force stop is for. You shouldn't need to force stop every X min. ONY when the app is misbehaving in rare occasions.

If you don't want all those apps running background services, check to see if they have settings to disable them. Look for things such as disabling background notifications or other "polling" for information/updates. Otherwise, uninstall the app.

You can find even more info over here in this thread and this thread.

share|improve this answer
    
that cleared things up.. thanks alot man –  Suren Dec 14 '11 at 15:53
    
oh yea...another thing.. do i need to clear the memory occasionally under the task manager? the RAM usage seems to be really high and not going down. –  Suren Dec 14 '11 at 15:56
    
Clear which memory? Do you mean the "clear data" for certain apps? That will only temporarily fix a problem if an app is using a lot of data (typically a cache or database). –  Bryan Denny Dec 14 '11 at 16:03
    
If you mean the memory used up by all the active services.... the only way to get really get that to go down is to uninstall those background services or disable their background services (notifications, etc.) –  Bryan Denny Dec 14 '11 at 16:04
    
to uninstall the background services I have to use the app itself right –  Suren Dec 15 '11 at 8:21

Some of the applications (e.g - facebook, maps) are like services.. they keep restarting always. If other applications like Browser, Messaging are exiting fine then there is nothing wrong. It's just that some applications always want to run in background. Best option is to uninstall any of the applications which you don't use. If there is an application which you require, better let them run. Using task killers is not a good idea.

share|improve this answer
    
Thanks.. so its normal for apps like facebook, whatsapp and map to keep running ? –  Suren Dec 14 '11 at 11:12
    
Yup! Don't worry much about them. –  Sumit Nathany Dec 16 '11 at 6:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.