除了需要资源之外,在什么情况下最近的应用程序会被 Android 杀死?
In what circumstances recent apps are killed by Android other than a need for resource?
我们所知道的主要原因之一是 Android 可能需要一些内存资源或电池节省并决定这样做。但我想知道的是:
还有什么其他的东西,比如时间限制,可能会让 Android 终止你的进程吗?或者其他什么?
Is there anything else like time limit which may make android kill your process? or anything else?
系统以回收系统资源以外的原因杀死最近对用户重要的进程是没有意义的。
但是长运行进程(约30分钟,可能因OS版本而异)可能
- be downgraded in their "importance"让他们"chances"被系统杀死增加
- 或者得到their task cleared,即"the system clears a task (removes all activities from the stack above the root activity) in certain situations when the user re-selects that task from the home screen. Typically, this is done if the user hasn't visited the task for a certain amount of time, such as 30 minutes." 注意清除一个任务和杀死一个任务是不一样的应用进程!
P.S。至于您的假设,对于没有 "lack of resource or anything" 的设备,您可能 (or may not!) 在约 30 分钟未访问该应用程序后观察到任务清除。
我们所知道的主要原因之一是 Android 可能需要一些内存资源或电池节省并决定这样做。但我想知道的是:
还有什么其他的东西,比如时间限制,可能会让 Android 终止你的进程吗?或者其他什么?
Is there anything else like time limit which may make android kill your process? or anything else?
系统以回收系统资源以外的原因杀死最近对用户重要的进程是没有意义的。
但是长运行进程(约30分钟,可能因OS版本而异)可能
- be downgraded in their "importance"让他们"chances"被系统杀死增加
- 或者得到their task cleared,即"the system clears a task (removes all activities from the stack above the root activity) in certain situations when the user re-selects that task from the home screen. Typically, this is done if the user hasn't visited the task for a certain amount of time, such as 30 minutes." 注意清除一个任务和杀死一个任务是不一样的应用进程!
P.S。至于您的假设,对于没有 "lack of resource or anything" 的设备,您可能 (or may not!) 在约 30 分钟未访问该应用程序后观察到任务清除。