We have a Service that continuously collects sensor data on the phone. This service should run \"forever\", e.g. as long as the user wants, and not be killed by the system.<
How do you start the service? Have you tried startForeground()? That's not an absolute guarantee, of course, but should at least lengthen the lifespan.