Apps keep auto-closing. - Captivate General

I've tried many froyo roms and cm7 and apps don't stay open. If I switch from an app for a couple of minutes and then come back to it, it's closed and has to reopen.
Sent from my SGH-I897 using XDA App

Are you sure they're apps that are supposed to save their state? Are you running any sort of task killer or memory "enhancing" software? Do the roms you use have any sort of memory optimization built in?

Android used a similar way of memory management to Windows Mobile.
When your memory usage reaches a level, the system starts to kill background apps. I think there are 4 tiers of killing...

Related

Memory leaks?

My Cappy starts with about 165mb of free RAM, but it quickly goes away as I use apps. I have Task Killer installed and set to kill apps every 30 minutes, but once I get down to about 90mb of RAM it is impossible to get anywhere near what I boot with free. I'm used to memory leakage on my WinMo phones, but this is way worse. I had CleanRAM on my Tilt 2 (from XDA) and it worked pretty good and allows scheduling. Is there a similar app for Android?
I'd get rid of Task Killer, you don't need it.
its not leaking memory...it handles memory differently than windows of yore....stop fretting about how much memory you have available and just reboot your phone once every few days....thats not needed, but if it makes you feel better to look at useless numbers...
Yeah you need to stop looking at this as either a windows pc or an old device (think g1). Get rid of the task killer and never look at how much free ram you have again. Its not important at all. I've had this phone for months and I literally have no idea how much ram it uses on average because I have never checked or cared. My phone has been running smooth since day one. Yours will too.
Sent from my SAMSUNG-SGH-I897 using XDA App
Available RAM is a useless number? Having unused apps continue to run in the background is nothing to worry about?
Does anyone have anything usefull to respond with?
Miami_Son said:
Available RAM is a useless number? Having unused apps continue to run in the background is nothing to worry about?
Does anyone have anything usefull to respond with?
Click to expand...
Click to collapse
If you look at Window 7, there is a concept called pre-fetch. This allows the OS to load the programs into memory based on past usage, and frequency of usage. This lets us open the program much faster, than fetch when requested. This info is loaded to memory, and kept there, until some other program comes in that needs more memory.
And just 'cos a program is present in RAM doesn't mean it would use CPU.
And, based on my observation of android, I see that I have close to 180 MB free when the phone boots up. But this quickly reduces to around 120-150 in less than an hour based on what I use. After like a day this I see that free RAM is about 80-120 MB. And even after 3-4 days of no reboots, the free memory is still present at the same 80-120 levels. I am not sure what kind of memory management android uses, but its very effective, and never caused any noticeable lag in the system.
And, I do not use any task killers, not free up RAM in task manager.
Your concerns are flawed in the fact that the Linux kernel handles memory different than what you are used to. Simply speaking, Linux keeps memory used by applications on need to basis. It keeps it loaded until something else needs to use it. It will take from something else at the required time. A system actually performs faster when there is less memory available because that means that applications are able to be recalled quicker. It's not like it can only load from what is left available.
You will also notice that many applications take up memory but are using 0 CPU. This speaks to the fact that it simply loaded into memory and not taking up resources required for other operations.
Sent from my SAMSUNG-SGH-I897 using XDA App
Lot to learn about this Android, I see. So, why are there so many task killers on Market and other RAM-related programs if it is not important? Should I really not be concerned when I see a program I hardly use being shown as running on startup?
Miami_Son said:
Lot to learn about this Android, I see. So, why are there so many task killers on Market and other RAM-related programs if it is not important? Should I really not be concerned when I see a program I hardly use being shown as running on startup?
Click to expand...
Click to collapse
When I got my android phone, the first thing I did was put up things like task killer, start up auditor, etc. But as weeks passed, I realized these were more of deteriorating performance, than improve it. So got rid of them. Android can handle itself.
Autokiller optimises memory by changing values in android rather than kills apps. I reccomemd it, definately makes the phone faster. Set it to agressive.
Sent from my GT-I9000 using XDA App
Miami_Son said:
Lot to learn about this Android, I see. So, why are there so many task killers on Market and other RAM-related programs if it is not important? Should I really not be concerned when I see a program I hardly use being shown as running on startup?
Click to expand...
Click to collapse
It started with the combination of old versions of android (think cupcake and doughnut) and phones like the G1. Older versions didn't handle ram as well as they do in eclair and up. If you combine this with the fact that those older phones had less ram, and likely didn't use any gpu acceleration (unsure of this though), then task killers and other programs were considered necessary to get a fluid feeling experience.
They are still in the market now for 2 reasons.
1. Because some people still have those old phones and still run old versions of android. (less likely)
2. Habit. If people are used to using them and tell others they are necessary because they've always worked, why would a developer pull his money making app from the market? (much more likely)
So when Pandora or Grooveshark freeze, which happens all the time, and leaves my phone utterly useless until they're done doing whatever it is they're doing, how is using a task killer to...kill the process...not useful? It's much faster than rebooting the phone. I also think it's much faster than going into each application's individual settings to use the 'force stop' command. Is there a different way to kill a stuck app other than these methods?
Miami_Son said:
My Cappy starts with about 165mb of free RAM, but it quickly goes away as I use apps. I have Task Killer installed and set to kill apps every 30 minutes, but once I get down to about 90mb of RAM it is impossible to get anywhere near what I boot with free. I'm used to memory leakage on my WinMo phones, but this is way worse. I had CleanRAM on my Tilt 2 (from XDA) and it worked pretty good and allows scheduling. Is there a similar app for Android?
Click to expand...
Click to collapse
Along with what everyone else said, remember that a memory leak is a LEAK, something that is continuously draining, not a one-time thing. So, if memory goes to 80MB free and holds, that's not a leak, that's simply memory that is being used. If free memory drops to 75, then 60, then 55, 50, 45, and so on, then you have a true leak to worry about.
Well, what we Windows Mobile users often also refer to as leaks is the bad habit of some apps to not release their memory when closed. For instance, a program that carves out 25mb of RAM when started and returns less then half of that when closed.
jaju123 said:
Autokiller optimises memory by changing values in android rather than kills apps. I reccomemd it, definately makes the phone faster. Set it to agressive.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Anyone else know much about "Autokiller"?
i used to use a task killer with my G1, and continued to do so with my captivate but i saw a few things like this: http://geekfor.me/faq/you-shouldnt-be-using-a-task-killer-with-android/ and decided to get rid of my task killers and my phone seemed actually a little faster and seemed my battery life increased.
matt310 said:
So when Pandora or Grooveshark freeze, which happens all the time, and leaves my phone utterly useless until they're done doing whatever it is they're doing, how is using a task killer to...kill the process...not useful? It's much faster than rebooting the phone. I also think it's much faster than going into each application's individual settings to use the 'force stop' command. Is there a different way to kill a stuck app other than these methods?
Click to expand...
Click to collapse
It is useful in those situations but realistically when people give that argument they are just looking for a reason to keep it. Android has the ability to kill tasks built in. If you're on 2.1 then yeah it's buried deeper in the menu but not a big deal. I can't imagine an app freezing enough to warrant having a task killer for. If you're on 2.2 it's much more easily accessible.
When we talk about task killers we're talking about people using them to kill open tasks that aren't causing issues simply to see more free ram available.

[Q]ram problem

Hey guys, I have a problem with my RAM u see I only have about 140mb of RAM, which when I bought my phone they said that they was going to be 768mb of RAM. So the problem is that whenever I kill all app using advance task killer, there would only be maximum of 200mba of RAM.but now after flashing a ROM the maximum RAM is 140mb n after opening one or two apps my phone necessary really laggy as I would only have 60 MBA left.on top of that my internet takes up about 80 MBA. So I am angry about this. So is there anesthesia else to increase the ram?thx
Your phone is broken; You should sell it to me. I'm joking of course, I don't want your broken POS. Lol Im sorry, I mean nothing is wrong with your phone.
256 is dedicated to the gpu, then another 300 or so is dedicated to the OS, and Rosie UI. The rest of that is what you're seeing. Don't worry though, 140MB is plenty of memory. You need to uninstall your 3rd party task killer and just enjoy using the phone.
Paging Dr B said:
Your phone is broken; You should sell it to me. I'm joking of course, I don't want your broken POS. Lol Im sorry, I mean nothing is wrong with your phone.
256 is dedicated to the gpu, then another 300 or so is dedicated to the OS, and Rosie UI. The rest of that is what you're seeing. Don't worry though, 140MB is plenty of memory. You need to uninstall your 3rd party task killer and just enjoy using the phone.
Click to expand...
Click to collapse
Tnx for the reply but my phone lags, bro how
If you are flashing roms, then I assume you are rooted. Get Titanium Backup and freeze Sense. That will free up RAM and speed up your phone. I am using ADW EX on the stock ROM and I froze Sense (found two parts of it in Titanium). My phone is faster than hell...
Matt
Even with sense running your phone shouldn't lag unless one of your apps isn't working properly. The way android background processes work, if an active application needs more ram than is currently free, the android system will automatically kill inactive app(s) to free up memory. The problem is with poorly written apps that maintain active status when they are no longer active or have unnecessary services that relaunch themselves when they are killed. Your task killer cannot fix poor coding. It only provides a placebo effect. At best it is unnecessary, at worst it will exacerbate the issue.
Sent from my HTC Sensation 4G using XDA Premium App
moto211 said:
Even with sense running your phone shouldn't lag unless one of your apps isn't working properly. The way android background processes work, if an active application needs more ram than is currently free, the android system will automatically kill inactive app(s) to free up memory. The problem is with poorly written apps that maintain active status when they are no longer active or have unnecessary services that relaunch themselves when they are killed. Your task killer cannot fix poor coding. It only provides a placebo effect. At best it is unnecessary, at worst it will exacerbate the issue.
Sent from my HTC Sensation 4G using XDA Premium App
Click to expand...
Click to collapse
Yes, but android wont kill Sense. ;-) Trust me, freeze sense (dont remove it) and youll notice a difference.
Matt
mrg02d said:
Yes, but android wont kill Sense. ;-) Trust me, freeze sense (dont remove it) and youll notice a difference.
Matt
Click to expand...
Click to collapse
Guys I freeze sense but nothing happen I think it became even more laggy, how anything else to try
Have you considered flashin another rom, or reflashing the one you're using ? It might help.
It happened to me as well : phone was laggy and sloooow. I went into Recovery, wiped all data, applied the super wipe script (just to be sure) and flashed again my rom.
Been on it for two days, and phone is really fast and responsive.
jasdev said:
Tnx for the reply but my phone lags, bro how
Click to expand...
Click to collapse
What rom did you flash ?
Most rom devs seem to recommend giving your phone a day or 2 of normal usage to let the android os 'settle down'.
Mercvtio said:
Have you considered flashin another rom, or reflashing the one you're using ? It might help.
It happened to me as well : phone was laggy and sloooow. I went into Recovery, wiped all data, applied the super wipe script (just to be sure) and flashed again my rom.
Been on it for two days, and phone is really fast and responsive.
Click to expand...
Click to collapse
but f i use super wipe will all my data be gone?
jasdev said:
but f i use super wipe will all my data be gone?
Click to expand...
Click to collapse
use titanium to backup your apps... your phone contacts move to your sim cards...
MxFadzil92 said:
use titanium to backup your apps... your p
hone contacts move to your sim cards...
Click to expand...
Click to collapse
I am also staying in singapore, then my setings n messages?btw usually wat is Ur maximum allowed multitaking apps
Well yes, you will lose all your data. As mentioned higher, you can use Titanium Backup to save them.
As for your messages, you can use a small app, like SMS Backup and Restore (free on the Market) to save everyting on your SD Card, and restore them after you're done.
Reagrding the max multitasking apps, I admit I don't know how many of them can be kept running. I usually have 2 or 3 of them going at the same time, rarely more.
Mercvtio said:
Well yes, you will lose all your data. As mentioned higher, you can use Titanium Backup to save them.
As for your messages, you can use a small app, like SMS Backup and Restore (free on the Market) to save everyting on your SD Card, and restore them after you're done.
Reagrding the max multitasking apps, I admit I don't know how many of them can be kept running. I usually have 2 or 3 of them going at the same time, rarely more.
Click to expand...
Click to collapse
Thx bro, but because of all this it makes me regretfull getting this phone cause the RAM issue but other then that everything is good, I feel like getting galaxy s 2,haha
That's a pretty normal amount
Sent from my HTC Sensation 4G using XDA App
flipmatthew said:
That's a pretty normal amount
Sent from my HTC Sensation 4G using XDA App
Click to expand...
Click to collapse
Huh wat are u talking
jasdev said:
Huh wat are u talking
Click to expand...
Click to collapse
He's saying that your free ram amount is pretty normal. I want to know where you're getting the free ram amount from? If its from task manager (included or third party) its probably wrong. Go to settings>applications>running services and look at the bottom. I found that to be the most consistant regardless of device. BTW, I currently have 215mb free with ~20+ apps running and I never kill anything. In comparison, task manager shows 97mb free with only 4 running apps.
Sent from my HTC Sensation 4G using XDA Premium App
moto211 said:
He's saying that your free ram amount is pretty normal. I want to know where you're getting the free ram amount from? If its from task manager (included or third party) its probably wrong. Go to settings>applications>running services and look at the bottom. I found that to be the most consistant regardless of device. BTW, I currently have 215mb free with ~20+ apps running and I never kill anything. In comparison, task manager shows 97mb free with only 4 running apps.
Sent from my HTC Sensation 4G using XDA Premium App
Click to expand...
Click to collapse
Hey from the settings I have about 320mba free, but on my task manager it Shows 140mb, y? Another ques is why when I use internet n exit my phone becames very laggy n my task manager shows 80 MBA free, also y? It also becomes laggy after using market
jasdev said:
Hey from the settings I have about 320mba free, but on my task manager it Shows 140mb, y? Another ques is why when I use internet n exit my phone becames very laggy n my task manager shows 80 MBA free, also y? It also becomes laggy after using market
Click to expand...
Click to collapse
that's because task manager shows only completely unused ram. Running processes in the settings menu shows unused ram as well as cached processes. Cached processes are automatically ended when ram is needed so the android system includes that ram in the available ram count. Task manager does not do this. It will only show the unused ram. If you take your total ram (from running services menu in settings) and subtract the total amount of ram used by cached processes the numbers in task manger will march the new total. Example:
Running services shows 332MB (this is my actual numbers by the way) with 162MB used by cached processes. Task manager shows 170MB free. The numbers add up.
332MB - 162MB = 170MB
*edit
To see your cached processes go to:
menu> settings> applications> running services> menu> show cached processes
Behold_this said:
that's because task manager shows only completely unused ram. Running processes in the settings menu shows unused ram as well as cached processes. Cached processes are automatically ended when ram is needed so the android system includes that ram in the available ram count. Task manager does not do this. It will only show the unused ram. If you take your total ram (from running services menu in settings) and subtract the total amount of ram used by cached processes the numbers in task manger will march the new total. Example:
Running services shows 332MB (this is my actual numbers by the way) with 162MB used by cached processes. Task manager shows 170MB free. The numbers add up.
332MB - 162MB = 170MB
*edit
To see your cached processes go to:
menu> settings> applications> running services> menu> show cached processes
Click to expand...
Click to collapse
Thx bro but y foes my phone becomes laggy after using the internet, n also I only can run up to 4 app if I run some more it cancels the oldest app, y?

Memory clearing widget?

Hey guys, just looking to see if an app exists.
I use SuperBox to 'clear/free' my memory. I like to keep it at around 230MBs free at all times or so. My question is this: is there an app that exists that does this same thing, in a one-click widget form? Someting I can set as a 1x1 icon on one of my screens to just tap and it will clear the memory? That would be quite convenient, as right now I need to open up SuperBox, navigate to the Memory pane, then click 'Clear Memory'.
Thanks for the suggestions!
es taskmanager.
By default it will clear all apps in the list except a few which are hidden.
You can unhide apps/services by accessing the options menu.
You can also set a kill list only, so when you tap the widget it will only kill apps in your kill list.
https://market.android.com/details?id=com.estrongs.android.taskmanager&feature=search_result
Clearing memory doesn't really help your phone to much, it's just gonna restore in a second.
You can create shortcuts to your memory clearing App
Sent from my R800i using XDA App
task killers as you all should know are not healthy for android phones. linux pools memory. it manages it on its own.
Here's a good article on this: Android Task Killers Explained: What They Do and Why You Shouldn’t Use Them
In Android, processes and Applications are two different things. An app can stay "running" in the background without any processes eating up your phone's resources. Android keeps the app in its memory so it launches more quickly and returns to its prior state. When your phone runs out of memory, Android will automatically start killing tasks on its own, starting with ones that you haven't used in awhile.
The problem is that Android uses RAM differently than, say, Windows. On Android, having your RAM nearly full is a good thing. It means that when you relaunch an app you've previously opened, the app launches quickly and returns to its previous state. So while Android actually uses RAM efficiently, most users see that their RAM is full and assume that's what's slowing down their phone. In reality, your CPU—which is only used by apps that are actually active—is almost always the bottleneck.
Click to expand...
Click to collapse
Thus, killing all but the essential apps (or telling Android to kill apps more aggressively with the "autokill" feature) is generally unnecessary. Furthermore, it's actually possible that this will worsen your phone's performance and battery life. Whether you're manually killing apps all the time or telling the task killer to aggressively remove apps from your memory, you're actually using CPU cycles when you otherwise wouldn't—killing apps that aren't doing anything in the first place.
In fact, some of the processes related to those apps will actually start right back up, further draining your CPU. If they don't, killing those processes can cause other sorts of problems—alarms don't go off, you don't receive text messages, or other related apps may force close without warning. All in all, you're usually better off letting your phone work as intended—especially if you're more of a casual user. In these instances, a task killer causes more problems than it solves.
Click to expand...
Click to collapse
Task killers are useless on anything newer then android 2.1. All they'll do is break some apps. I haven't used these on my phones and don't have issues. If your phone is slow its due to a rogue app.
Edit: somehow missed Norflynns post. That link sums it up perfectly.
Sent from my R800i using XDA App
^^^ What they said
It's ok to have a task manager to keep an eye on processes and kill troublesome ones, but no point in constantly killing all your processes.

do i need it?

i am currently on Gb 2.3.5, i was wondering if i need advance task killer?
or is there something better? or i shouldn't install anything?
You do not need task killers. They are counter intuitive. They prevent the phone from sleeping and also conflict with androids inherent memory management, which is linux, because of the kernel. Things are cached in memory for ease of reopening later, while free memory is filled up with other caches to sped up the OS. Totally free and unused memory is wasted (to a point, eventually you need some, but android handles that pretty well).
Sent from my SCH-I510 using Tapatalk
No. Android takes care of memory for you.
Sent from my Droid Charge running Infinity Beta
Do like I do and holds down the home button and kill all the task that you don't want running
Sent from my SCH-I510 using XDA App
dont use task killers! sure, use the built in task manager to close apps when you're done with them but never use "clear ram" or any other task manager. Like previously stated they do way more harm then good
If you feel like you'd prefer to forego multitasking ability for sake of having more RAM available, you could always use V6 supercharger to adjust your minfrees values.
I rarely have many things going at once, and so I have my values set to free up RAM at pretty high values. Still allows me to swap seamlessly between Opera, Twitter, FB, and my Fantasy Football app, which is really my bread and butter. Any games or other programs are used seldom enough to where I can wait to allow them to free up RAM from other sources and open the program without much aggravation.

What is everyone using for automatic background task killing???

Hi there folks
With all the app updates etc over time, things tend to slow down a bit - mostly due to lack of free memory I suspect.
I've tried some apps such as smart booster etc, and notice immediate improvement once free memory is increased. Especially when I get a slow down switching between or loading apps.
With this in mind, what other apps or process killers are out there, or perhaps non-essential root apps that can be disabled/removed for stock 4.1.2???
Sent from my XT897 using XDA Free mobile app
I'm having a lot of success now by switching off background data for apps etc. I started by switching off everything & progressively enabling just the ones that MUST run for efficiency of use.
In addition to this, I run "Prevent Running" very aggressively - started by killing EVERYTHING, and followed the same procedure to allow just essential system & non-system apps & services that must run for smooth & fast operation.
I also set it to kill background apps & processes after a minute.
The phone is literally operating like a new one & has been so for a while. One app that can bog down the system (memory) is the recycle bin for ES, so switch off or regularly clear it if you get low mem errors.
Sent from my XT897 using XDA Free mobile app

Categories

Resources