gpt4 book ai didi

安卓 : What does system-initiated process death mean?

转载 作者:行者123 更新时间:2023-11-29 23:46:39 34 4
gpt4 key购买 nike

我正在查看 https://developer.android.com/topic/libraries/architecture/saving-states .它提到“系统启动的进程死亡”。它到底是什么意思?

最佳答案

引用 the documentation :

In most cases, every Android application runs in its own Linux process. This process is created for the application when some of its code needs to be run, and will remain running until it is no longer needed and the system needs to reclaim its memory for use by other applications.

(强调)

如果您的应用不在前台,系统可以随时终止您的进程以释放系统 RAM 供其他进程使用。 The page that you linked to有关于在短时间内保存 Activity 状态的信息(通过 onSaveInstanceState()),以防用户碰巧很快返回到您的应用程序,但 Android 在此期间终止了您的进程。

关于安卓 : What does system-initiated process death mean?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51275015/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com