问题描述
我一直在读那Android的(最喜欢的手机操作系统的),就不会退出的应用程序。
I've been reading that Android (like most of mobile OS's) doesn't "exit" applications.
当我们preSS后退按钮,应用程序仍然在后台(如一个iddle状态)。
When we press the back button, the application is still in the background (like an iddle state).
所以,我想知道,是什么doees它做的时候有太多的应用程序在后台运行?
So, I'd like to know, what doees it do when there's too many apps running in the background?
推荐答案
Android开发者指南一>:
Android系统试图维持
只要一个应用进程
可能的,但最终会需要
除去内存时,老工艺
电量不足。要确定哪些流程
保持和杀死,Android的
每个进程放入一个
重要性阶层的基础上
组件它和运行状态
的那些部件。与进程
最低的重要性被淘汰
第一,那么那些具有下
最低的,并依此类推。
从用户的角度来看,更多的内存的Android设备了,就更好了。为什么?未使用的应用是空闲并且占用设备的RAM的一部分。
From a user's perspective, the more memory an Android device has, the better. Why? Applications that aren't used are "idle" and take up a part of device's RAM.
每次从零开始应用程序时,也就是一个应用程序,并没有闲着,Android的CPU会占用资源,将其带到生活和到内存中。
Every time you start an application from zero, that is, an application that isn't idle, Android's CPU will use up resources to bring it to life and into memory.
当一个应用程序进入空闲模式,并且,以后,回到主动模式下,它不会占用这么多的CPU。和CPU使用率是主电池下水,如果我们不采取GPS,WI-FI和蓝牙在内。
When an app goes into idle mode and, later, back into active mode, it won't use up that much CPU. And CPU usage is the main battery drainer, if we don't take GPS, WI-FI and Bluetooth into account.
那么,这是什么意思呢?你想,你经常使用驻留在内存中的应用,使CPU不被用作多。 Android将让他们活着,根据优先级。
So, what does this all mean? You want applications that you use often to reside in memory, so that CPU isn't used as much. Android will keep them alive, based on priority.
这就是为什么任务的杀手是一个坏主意的原因,这就是为什么他们不会在Android 2.2的工作了,升级Froyo。
This is the reason why task killers are a bad idea, and this is why they won't work anymore in Android 2.2, Froyo.
这篇关于在Android操作系统会发生什么时,有太多的应用程序"睡眠"在后台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!