How to make sure the program is running for long time and not shut down by the system?
<p>To be more specific, in my app there are recorder and accelerometer running in 2 services to record sleep cycle, and I need to make sure these 2 components stay up all night long (8 hours for example), how do I make sure they will not be killed or shut by the android system itself?
Although I doubt it will, because they are not memory/CPU intensive anyway, but just in case if this really happen. </p>
