<quote> These processes often hold one or more Activity instances that are not currently visible to the user (the onStop() method has been called and returned). Provided they implement their Activity life-cycle correctly (see Activity for more details), when the system kills such processes it will not impact the user's experience when returning to that app: it can restore the previously saved state when the associated activity is recreated in a new process. </quote> 根据文档的说法,回收内存的时候,如果实现过生命周期,那么用户返回时可以保证用户体验不被破坏,也就是说会走生命周期,
对于目前国内的 rom 来说,杀后台进程大都是直接走了 forceKill,内核直接杀,应用并不能收到任何通知,
honeycomb
2018-01-24 18:58:53 +08:00
Android 8 增加的后台限制真的是非常友好了,仅默默杀掉 service 并确保它们不再自行重新启动,但又不干涉 job
第 1 页 / 共 1 页
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。