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.

I am using the latest stock ROM for my phone (SGS3, Vodafone variant, although rooted) and I have installed a GPS live tracking program that stays on the taskbar as a service all the time (and that's the way I want it to).

When I load up some RAM-hungry games that I've installed, sometimes that service dies (along with other processes that I don't care about) because Android tries to free up memory automatically (I have no task killer installed).

Is there a way to make that service having higher priority, so it won't get scooped along the other things that Android's garbage collector trashes when I open my favorite enormous apps?

Thanks in advance!

share|improve this question
add comment

2 Answers

Try Auto Memory Manager and set your minfree values on the secondary server lower so it has lower chances killing off services. You can also increase the OOM priority of the service to 0 (lower values means less chance of being killed), also part of app.

share|improve this answer
    
From the FAQ: I’ve set a app’s priority to “keep-alive” but it changes back after a while. What’s happening?? Unfortunately this is outside of my control. I have the ability to change the priorities but unfortunately the kernel is still managing the priorities and will set the priorities to what it deems suitable. As we were never meant to change priorities manually I think there may be no provision to stick to manually adjusted priorities. –  Saxtus Mar 3 '13 at 10:18
    
Not all apps are perfect and android has limititations. But still there is no other app I know of that can efficiently adjust the memory killer like this one. –  forums Mar 3 '13 at 10:33
    
I know at least one more that has this ability (with the same limitation). It's called AutoKiller Memory Optimizer. Unfortunately that doesn't give a solution to my problem. I'll wait a bit longer in case someone knows something that you and I don't, before accepting your answer. For now, as you can see, I've just voted it up. –  Saxtus Mar 3 '13 at 21:13
add comment
up vote 0 down vote accepted

The only solution I've found and seems to be working with more than one services, is to make sure that I leave open in the task manager the applications I do not want to be closed down.

This isn't a bulletproof approach, but it works for hours or even days (at least in my case) and it's much faster than manually changing OOM priority (only to find out that OOM changes back after a while by the system itself).

Ideal solution would be an application that monitors OOM of services specified by the user and making sure it's kept at certain levels, but I haven't found any that can do that until now.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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