7

Android 开发者选项里的「正在运行的服务」界面里的「进程」和「服务」分别是什么意思...

 2 years ago
source link: https://www.v2ex.com/t/813533
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Android

Android 开发者选项里的「正在运行的服务」界面里的「进程」和「服务」分别是什么意思?

  takeshima · 3 小时 52 分钟前 · 209 次点击

如题,在开发者选项中的「正在运行的服务」,其中会有类似「 1 个进程和 2 个服务」这样的字样。但是有时候会出现「 1 个进程和 0 个服务」,并且同时这个 App 也不在前台,按照Android 开发者网站对进程生命周期的解释,没有可见的 Activity ,又没有服务,不是应该是缓存进程吗? 甚至有些时候还会出现「 0 个进程和 1 个服务」,四大组件不是都运行在进程中的吗,0 进程如何还能有 1 个服务呢? 是不是此处的「进程」、「服务」的意思与通常的理解不相同,或者是这个界面里的统计方式比较特别?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK