How to lock apps in memory - G1 Q&A, Help & Troubleshooting

I understand android has its own way to manage apps. If they aren't being used, android will automatically close them.
Sometimes, though, android (at least mine) is stupid. For example, if I don't have the music app open, it will close and stop playing.
I'd like to explicitly force apps like IM apps or google voice or my music app to never close. Is there a way to do this?
Sent from my HTC Dream using XDA App

nice question...

I don't mean to spam, but I will bump this until someone answers, 'cuz I've got the same question.

Well you have to increase the priority of the apps you don't want to close. An easy way to that is by using the "Auto Memory Manager" application.

I've used EX launcher once and it has that feature of locking the apps you want in memory and the task manager will not be able to close them most of the time.

renice pidof $process_name

try using the auto memory manager app in the market

quite important question indeed.
i managed to get lower OOM associated to particular applications, such as GO SMS and ADW launcher, which are 2 fundamental apps for me.
fortunatelly i did not have any problems with music player and training session recording apps. using Laszlos' ROM, ADW lancher and GO SMS had a great combination of quite stable system.
so i guess you have to find the best components
to tell the thruth i do hate application handling of android

Related

App Request - kill tasks, then launch another app

Enjoying Taskiller - works very well.
Most users know their apps run better once unnecessary background apps / services have been killed.
Another set of users continue to complain about specific games or apps being laggy without taking steps to solve the problem.
Case in point is the camera application which needs more memory than most and often gets out of memory exceptions.
What would be great is if Taskiller or one of the other task closing apps could create a configurable desktop shortcut that would kill all unneeded apps, then launch a preconfigured app, e.g. camera app.
Users would need to understand that clicking this button to launch another app will lose state in any running apps, but will most likely mean the game or app they then run will have far better performance and be less laggy.
Any takers?
Though im the tiniest bit of confused...
A) If this app TaskKiller (never used) worked so well, whats the need for another?
B) I am also unsure if its absolutely necessary for the android platform. Maybe older phones or WinMo phones (<6.1) have this problem. But as far as I know, android has a garbage collector in which it treats its processes with priority and after a certain utilization, it ends it (for instance. I am playing gameboid, then just hit the home button. I can go back to gameboid fine. But if I open a large app after 'minimizing' gameboid (like opening the htc music player), gameboid will end and I will have to reload it again. Though if I open msgs while gameboid is minimized, gb stays up.
Its supposed to do that. So this request I am not sure if its really necessary.
Killing background apps when memory requires is the theory behind the OS but doesn't always work in practise.
For example, play any game on Android and you'll see occasional judders in the scrolling, etc. - this is usually because a Facebook or Twitter app on the phone has decided that its a good time to get some new notifications ... but that spoils the game experience.
I hate to mention the fruity phone but this is one of the places where it beats Android hands down and their games are in a different league to ours.
I think a way to clear the phone's background processes before launching a game / resource intensive app would make a big difference.

Apps seem to open themselve sin the background when they have no services or function

As topic.
5.0.6 via kang
Just did a full restart so I can get the full picture, this is what is open, sorted into categories of stuff which does have services (which im happy with), those with services (which i think ive dissabled and shouldnt be there), those with no services which shouldnt be there:
services and happy:
HTC IME mod
live wallpapers
email
calendar
auto memory manager
news and weather
google mail
music
setcpu
3g watchdog
juice defender + plotter
beautiful widgets
engaget
helixlauncher
taskiller [what im looking at it with]
services and not happy:
clock
bluetooth share
cm updater (ive turned it to manual only)
bluetooth file transfer
finance (ive told it NOT to update, i dont use it really)
camera (does it need to sit open in the background?)
notes
klaxon
cachemate
appbrain market sync
mp3 store
weatherbug elite
no service and dont want:
shopsavy
police stream
Does anyone know of any program i can use to directly stop these unwanted apps to stop running every time, or any individual information on the programs?
cheers
Why do you not want them preloaded?
The main reason im being such a memory whore is because my launcher lags like crazy under 70-80mb. I have 250ish apps, and see many people with a similar setup demonstrating on youtube, and theirs is instantly responsive, as is mine >120mb free. If I leave all these apps etc free, i end up on ~40mb which makes my old nokia 6300 looks like flash gordon compared to my launcher :/
Re: Apps seem to open themselve sin the background when they
Android preloads apps into its memory for fast load times.
Just because an app is loaded does not mean it is using any resources. They're usually just sitting there idle. Android also frees up memory as needed.
That said, I've seen apps that can control what apps you never want preloaded. Search around on the market.
Looks like the slowdowns from a lack of ram still exist. I hope froyo will help with this. This problem makes the lower end android phones run slow.
-------------------------------------
Sent via the XDA Tapatalk App

Any app to auto kill on exit?

Seems the N1 has memory management issues. Instead of constantly closing apps to free up memory or have some app try to manage things, be nice to just kill the thing on exit. Any app that will auto-kill when an app exits?
Sent from my Nexus One using XDA App
It would be nice to have, say, long press back key to kill the current app.
Big_O said:
Seems the N1 has memory management issues. Instead of constantly closing apps to free up memory or have some app try to manage things, be nice to just kill the thing on exit. Any app that will auto-kill when an app exits?
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
You obviously didn't search for this:
http://forum.xda-developers.com/showthread.php?t=678205
You DON'T need to intervene with N1 memory management, since you don't know how it works. You assume wrong. And most bad gossips are created by people wrongly assuming something, thinking they know something while they actually don't.
My N1 runs equally well with 40MB and 250MB free. The only reason I use a task killer is to kill apps that I want to return to their "initial" state for some reason, or to kill apps that I suspect of wrongdoing.
Exactly, the nexus has no memory management issues. It is just your misunderstanding of how Android works. Leave your tasks alone.
If you have one or two particular apps that are bad citizens and should be shutting down in the background but don't... you can use "1Kill" from the market to create a home screen shortcut that kills that specific app when you press it.
Fring used to be a bad citizen - it would lock my wifi on even when I didn't want to be using it, and had no exit feature. So I'd always have to kill it after finishing up with it. Now it does have a proper exit, thankfully.
Jack_R1 said:
My N1 runs equally well with 40MB and 250MB free. The only reason I use a task killer is to kill apps that I want to return to their "initial" state for some reason, or to kill apps that I suspect of wrongdoing.
Click to expand...
Click to collapse
Ditto!
1 app running or 50 apps running they all still run the same.
I find it even funnier how iOS4 users in Apple-land are suddenly freaking out that so many applications appear to be open "in the background" and complaining that they have to spend so much time "killing" apps.
Big_O said:
Seems the N1 has memory management issues. Instead of constantly closing apps to free up memory or have some app try to manage things, be nice to just kill the thing on exit. Any app that will auto-kill when an app exits?
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
I think you have the memory management issues.
Before anyone gets tarred and feathered, that explains why many users on unrooted stock roms ha e frequent touchscreen lockups, hesitation and freezes. Guess theres a reason why the market has so many task killers. Maybe the devs should read this thread also lol. Instead of flaming, positive feedback is appreciated. I did search, but its a bit time consuming sifting through 5000 posts. Maybe you guys o rooted phones have no lockups, but google shows an azzload of people with similar issues.
Sent from my Nexus One using XDA App
1) You've been given some answers in the thread, if you cared to look.
2) App that loses focus goes to background. That's the way OS is built. If you want apps to be killed on losing focus, get iOS 3 to run on your device. Seriously, what kind of answer would you expect, if you want to turn multitasking OS into non-multitasking?
3) The market has task killers because they can be written for multitasking OS, and because they help dealing with bad apps. Not for any other reason.
4) The OS loads some of your most used tasks when it runs, even if you don't know about it. Just loads in the memory, and allocates no CPU time. If you leave your phone unattended, your free memory goes down by itself. Why? Because free memory is wasted memory. You can check the "EMPTY" processes in Astro, for example.
5) The best task killer is careful selection of your apps. You see hangups? Find out the app that's doing it and remove it, or kill it specifically after running if it's necessary.
6) Task killers are a good source of lockups and freezes too, did you know? I guess you didn't read that thread...
All this meant to say: instead of looking for a way to cripple your OS, learn to select your apps, and don't solve issues that you don't have.
cmstlist said:
I find it even funnier how iOS4 users in Apple-land are suddenly freaking out that so many applications appear to be open "in the background" and complaining that they have to spend so much time "killing" apps.
Click to expand...
Click to collapse
Yeah, I think Apple needs to tweak their multi-tasking still. I've played with my gf's iPhone a bit this week, and it's a little annoying how now you have to explicitly quit every app. For example, with the Settings app if I go to change a preference quickly then return to home Settings app is still in the running apps list. I think little utilities like that should be able to quit themselves automatically.
I know the app isn't wasting memory or CPU down there, but I just don't see why you would want it cluttering up your app switcher forever.
Oh well, it's progress though. At least now you don't have to quit everything else you're doing to listen to Pandora
well android does the same thing. if you go into the settings menu, then hit home button, the settings is still running in the background. of course andoird will kill it later when it needs to.

Apps automatically starting up, by themselves

Hello all,
I recently bought my N1 about 4 days ago. So far its been great. Easily one of the best phones I've ever owned. However, I am having this problem where apps in android seem to startup by themselves. I'm using Advanced Task killer to kill em but ill kill them and then like a minute later they're back up and running without me starting them. Its quite annoying as my battery is taking a beating from it having to close and open apps and repeat. The biggest offenders of this are the voice apps such as voice search, voice dialer, Google voice (which isn't even setup), and the amazon mp3 store. A few third party apps I downloaded tend to do this as well.
Have any of you guys experienced this? Is there any way to fix it? Thanks in advance! XD
Sent from my Nexus One using XDA App
decoyjoe said:
Hello all,
I recently bought my N1 about 4 days ago. So far its been great. Easily one of the best phones I've ever owned. However, I am having this problem where apps in android seem to startup by themselves. I'm using Advanced Task killer to kill em but ill kill them and then like a minute later they're back up and running without me starting them. Its quite annoying as my battery is taking a beating from it having to close and open apps and repeat. The biggest offenders of this are the voice apps such as voice search, voice dialer, Google voice (which isn't even setup), and the amazon mp3 store. A few third party apps I downloaded tend to do this as well.
Have any of you guys experienced this? Is there any way to fix it? Thanks in advance! XD
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
Do not worry about app running in the background, what you are probably seeing is the list of what was run, Android is verry good at managing memory, in fact I do not even use a task manager and I am fine with it.
Well that's the thing. Some of these apps that startup I have never run such as the mp3 store. So I close it and I get an additional 10megs of memory. But then it just starts back up. So I don't know how to stop it all together.
Sent from my Nexus One using XDA App
There are apps that automatically run in the background but don't effect performance like Google voice voice dialer etc..what I did was add them to the ignore list. Trust me those apps are always running no matter how many times you close them
Sent from my Nexus One using XDA App
Like has already been said, stop worrying about it. Those apps are NOT stealing memory, they're NOT using battery.
Free memory does not benefit you. Android will automatically load apps in to memory so that they are available to switch to fast as possible.
You should not kill apps unless they are bisbehaving. Killing off apps forces Android to load them back into memory if its algorithm thinks you are likely to use it. The act of loading data into memory uses power and Android tries hard to avoid it.
I was obsessed with managing my memory and running apps when I bought my nexus one. Everyone at that time suggested task killers so I got one of those. I had crappy performance with random sluggishness. I figured I just needed to kill off more apps. Eventually I read an article from an Android dev explaining this stuff and I backed off and have had a much better experience since.
I wish Google was more vocal on this subject. Everyone thinking auto task killing is a necessity on Android really gives it a black eye.
Sent from my Nexus One using XDA App
http://forum.xda-developers.com/showthread.php?t=712352
Jack_R1 said:
...
2) App that loses focus goes to background. That's the way OS is built. If you want apps to be killed on losing focus, get iOS 3 to run on your device.
3) The market has task killers because they can be written for multitasking OS, and because they help dealing with bad apps. Not for any other reason.
4) The OS loads some of your most used tasks when it runs, even if you don't know about it. Just loads in the memory, and allocates no CPU time. If you leave your phone unattended, your free memory goes down by itself. Why? Because free memory is wasted memory. You can check the "EMPTY" processes in Astro, for example.
5) The best task killer is careful selection of your apps. You see hangups? Find out the app that's doing it and remove it, or kill it specifically after running if it's necessary.
...
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=678205
Remove your task killer (or, if you insist, just clear the auto-kill list), erase all you think you know about memory management - because you don't know - and stop worrying.

Kill apps from ram for good

I have a few apps running in the background all the time. Facebook and blood and glory mainly. Is there a way to delete them for good? On Facebook I set it that no notifications and never refresh, and its still using up 12mb. Same with blood and glory. Any way to kill them for good? Is there an app maybe? Thanks.
Well, mainly in android apps have 4 components.
Two of those are Activities and Services.
The activities have UI, you can activate and use it. The services doesn't have UI since they are hidden. You can't Activate them manually and their purpse is to open the app fast. Deleting the app is the best way you can use a task manager to close them.
Advanced Task Killer, for example, has the ability to set timer for RAM clearing, you can set it to whenever you lock your screen.
if i helped you, hit the thanks button
Another way for ram.
I think of the amount of memory (ram) have effected to play game or run any application smoothly.
So If you use kernel Semaphore 2.7.4(GB) or 1.2.0 (ICS) there are choices for big memory to run application smoothly.
I want to kill an app like Facebook, and then I don't want it to run in the background after I close the app. When I kill the process , after aboit 10 seconds it goes on again!
Anyone!?
Anyone 2x?
use advanced task manager.or delete the facebook app and install fbm.it does not run in the background
I've found an useful article about Task killer apps:
Being a new member, I cannot post outside link.
Search for: Task killer apps What they do, and why you shouldn't use them ->
Autostarts
There is an app on android market called Autostarts, it's an amazing app i've used it for over a year now and never had any problems. what it does it stops apps like facebook from starting up automaticly and keeps the app fully closed until you choose to launch it. Same goes for any other app which you choose to disable from auto-starting by itself. This is why Autostarts is so much better than say a normal task killer because apps closed by task killers restart themselves a few minutes later so your just running round in circles trying to keep the app closed probably eating up more battery trying to close it every 5 minutes than if you just left the app alone, where as with autostarts you dissable the app once then thats it it wont start until you tell it to, perfect!
Autostart sounds quite good
I'd also recommend using titanium backup to freeze the app, unfreeze when you want it and then freeze when you dont.
Autostart probably sounds like the easier option, no need to keep freezing and unfreezing, but knowing about titanium backup and freezing apps doesn't hurt

Categories

Resources