销毁所有Android组件后,应用程序进程是否总是被杀死? [英] Is app process always killed when all Android components are destroyed?

查看:218
本文介绍了销毁所有Android组件后,应用程序进程是否总是被杀死?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当所有服务停止时,所有广播接收器都完成了其工作,并且没有任何活动在运行. Android会永远终止应用程序进程吗?

When all services are stopped, all broadcast receivers finished their jobs and no activities are running. Will always Android kill the app process?

推荐答案

立即?不会.您的进程将是一个缓存的进程,直到再次需要您的进程或Android需要其他进程的系统RAM为止.

Immediately? No. Your process will be a cached process, until such time as either your process is needed again or Android needs the system RAM for other processes.

有关更多信息,请参见文档.

See the documentation for more.

进程保留在缓存中的时间取决于系统RAM的数量和正在进行的活动量.可能是毫秒.可能要几秒钟.它可能会存活几分钟.不太可能生活几个小时.

How long a process remains cached varies based on the amount of system RAM and how much activity is going on. It could be milliseconds. It might be seconds. It's possible it will live for minutes. It is rather unlikely to live for hours.

这篇关于销毁所有Android组件后,应用程序进程是否总是被杀死?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆