How to keep a service from closing? 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!
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.