Is there any way to keep certain background applications running if memory runs low and the android garbage collector goes around killing processes that are running in the background?
I have the problem that under low memory situations android kills all my background apps and especially services. This is ok for most use-cases, but is really annoying especially for my Jabber client and sometimes even the music app.
I looked through the API doc and found that you can set Service::setForeground(true) to prevent the service from being killed. This is nice for open source apps, but I can't prevent closed source apps from being killed that way. And I'm not even sure if it helps in all cases, as the music app should be using it and gets killed too.
Does anyone know how I could exclude certain apps from being killed in the BG? Which process is responsible for doing that? Wouldn't it be possible to patch that process or part of the kernel to exclude certain processes?
I know there are workarounds for keeping the launcher in memory by restarting it all the time. That wouldn't help in my situation where the Jabber service has a permanent network connection going.
Anyone got technical information for me on this?
You created a new thread with [Q] so why don't you create it in Q&A forum. Thread move.
Sorry if this has already been asked, I already searched in Google and in the Forums.
In Portugal we don't have unlimited data plans, actually they are really limited (mine allows only 150MB). Today I've used only the data connection for less then 2h and it used 4MB of data (430KB received and 3.5MB transmitted) and all this time the phone never left my pocket. With the G1 on a average day it used only 2MB.
Does anyone have a similar problem?
How can I track which app is using all this data?
I'm using CyanogenMod, but I have the same problem with the default firmware.
yes i have noticed this too. but here in USA we have unlimited data. the only suggestion i say is to turn of the data connection completely. that's the only solution that i know. it seems like android 2.1 OS is constantly sending data packets, even if you dont have any apps doing anything in the background.
Sorry to hear about the small data plan options, that just stinks
That sucks! Android without data connection looses the whole point, I'll check if there's any other bigger data plan that I can afford...
Still, if anyone knows a solution, please tell me.
Look through all the default programs to check for any syncing options.
News and weather defaults to pull stories every 12 hours I believe. If you don' use that, turn it all off(especially the news).
Check your E-mail frequencies as well if you added any pop/imap addresses. The defaults are 15 minute intervals.
Those are the two major things that pull data off throug default settings.
I already tried to disable "Background data" on preferences and it didn't solve the problem, so it's not gmail, calendar or any other gapp. I'll try to disable the weather (though, since most of the data was transmitted, not received, that shouldn't be the problem)
Haven't enable Latituded in Maps have you? That sends out a **** load.
I have latitude enabled, but I has it enabled in G1 too. I'll try to disable it anyway.
Most googles apps are push so they won't have large usage. When I said email I meant the email application.
No, I didn't use the email app, I've put my POP accounts on Gmail
After killing (almost) all apps using Astro it stopped using the data connection madly. Next I'll reboot and kill the apps one by one until it stops again, if I find anything useful I'll post it here.
System panel will tell you what you network usage is as well.
As far as I know...Maps and rest of Gapps are the cause for this "problem".
I´m not worried about using too much data, as my plan runs unlimited...but about my privacy!
Google is a MONSTER we are feeding each second...the most androiders...the most bigger the "Bicho" will be
Anyway, I just turn sync and any form of geolocation OFF and things get measured...
Netdroid from the market willl help you control your data connection.
I noticed that the "battery use" thing displays the data used by each app, but it only displays the most battery consuming apps. Would this be a way to go?
It's probably an app running wild, but it can be a bit hard to find out which. I installed the chess.com app once and without _ever_ starting it I found out it had used 40MB up/down in a rather small timeframe. Immediate uninstall for programs that waste my bandwith (have a 1GB plan, so not that big of a deal, but still).
That's what I thing, but how do I find out which app it is?
Need someone to confirm this but…
If you do the *#*#4636#*#* “trick” (type this into the phone pad). Then go to Battery History, then change the top drop down box to Network Usage, this appears to list all the apps using the network and how much they are doing so. If you click on an app it shows you how much data it has sent and received.
Is this useful for the OPs question? I’m suspicious because it is under “Battery History”, but it does appear to show which applications are using the most data…?
Yes, that's exactly the point of the Service Menu (it's no trick).
On Cyanogen the option is showing in Spare Parts.
I think your **** is porn-addict and browse youporn since we have flash on your phone when it's in your pocket
heya fellas
going thru my battery history on daily basis i find those 5 culprits abusing my battery.
Gallery: uses a lot of batt due to sensor usage ( def bugged )
Dialer: what in gods name is Dialer doing to abuse the partial wake/net connection(3G) ?
0: some freaky app i guess that uses a lot of batt under net connection usage(a click on this to see any more info FC the batt history app, wow)
UID 10007: no idea what this is but its right there under 0 using net connection too
Email: i doubt its something wrong but since i have it on a 10 min refresher i dont mind it being up there since i was the one who chose a 10 min interval. but still its sucking my batt
need pics? i could post em if anyone could help.
now id love to know if anyone knows of any solution to those huge battery suckers?
what in gods name is 0 ? or UID 10007 ?
Gallery 3d sensor still bugged? im guessing my only solution here is to delete this by titanium and use another gallery app instead of the original ? any recommendations ? has anyone been down this path ?
any info is much appreciatted ^_^
anyone ?
anything ?
Sorry for late reply.
You probably already have this fixed, but for others that still get this problem the fix is to remove the original Gallery 3D app with Titanium Backup and then install the same Gallery 3D from the Android Market.
Ah yes, and for all this to work you need to Root your phone, with something like z4root.
Hope it helps!
I've looked around about the 0 think, and came to the conclusion that it's probably the process for network standby (ie staying on the network). If anyone knows otherwise/can confirm that'd be great
Yes, 0 process seems to be an internal loopback for connections. All should go trought 0. Is fine, do not care about it.
An even easier way to get the updated gallery (with better resolution photos) is to install SGS Tools (not toolbox, tools), pick 'upgrade stock apps' then 'modded 3d gallery'.
The Email battery drain bug is a known one, maybe try using k9 mail instead? Or you could try the galaxy tab app, it worked fine for me (after a little fiddling, mostly to fix the camera FC issues) but it doesn't support HTML emails, which is a bit disappointing.
Or just set the update interval to something like an hour.
The dialer thing has been bugging me too lately, i havent nailed the problem yet.
Hi,
I recently noticed that background apps get killed very quickly.
It is definitly not like on my Nexus 4 or Nexus 7 that also have 2gb RAM, even the really small and simple apps get killed and often only 1 app (like google music) is still kept in ram.
Stamina mode on/off does not seem to have any influence on it.
I would appreciate help in solving this. Are there any suitable system logs (phone is rooted), a developer option or an app that can help me find the source of the problem?
Thanks for help
Hi
I would like to change data limit and data warning with tasker.
No matter with shell plugin or intent to some app ... googled quite a bit but could not find a solution ...
Does anybody know one? SecureTask seems to be able to read the data usage "Network usage" but also cannot adjust the limit/warning ...
Would be great to be able to do that. The plan is to change the limit daily so that even in the end of the month 1/30 (or 1/31 or 1/28 or 1/29) of data is still available ...
Regards