4 ms·
The reasons I was given for shutting down the tasks wasn't system resources - it was battery life. That reason may be bs as well, but I'm not sure how the Droid
by troygoode 16y ago
The reasons I was given for shutting down the tasks wasn't system resources - it was battery life. That reason may be bs as well, but I'm not sure how the Droid would decide when to kill processes at the tail of the queue to conserver battery life. Does it expire them after a certain period of inactivity? Only allow X apps to run at Y% battery?
- moultano 16y agoThink of apps more as asynchronous event handlers rather than processes. When you take an action, some app wakes up and handles the event. They are always memory resident, but that doesn't mean they are doing anything.
- deleted 16y ago[deleted]
- edderly 16y agoIf I understand correctly it depends on how well or badly behaving the applications are. I believe the judgment Android makes to close down an application is primarily free memory (not battery life). This gives a basic overview of how application activities behave (see the diagram a few lines down): http://developer.android.com/guide/topics/fundamentals.html#actlife http://developer.android.com/guide/topics/fundamentals.html#... It is possible for a badly behaving application to create a thread which would continue to run whilst an activity is not visible. Take this as a common example for an Android game app framework: http://www.helloandroid.com/tutorials/how-use-canvas-your-android-apps-part-1 http://www.helloandroid.com/tutorials/how-use-canvas-your-an... Your app may need (implementation specific) to take explicit action (SurfaceView::surfaceDestroyed) to stop the rendering thread before being backgrounded,