android系统进程重要等级中IMPORTANCE_BACKGROUND和IMPORTANCE_PERCEPTIBLE什么区别?
很多资料上都是5大优先级,
前台,可见,后台,服务,空。
可是我最近在查看文档的时候发现ActivityManager.RunningAppProcessInfo下的importance有6个值,分别是
IMPORTANCE_BACKGROUND
IMPORTANCE_EMPTY
IMPORTANCE_FOREGROUND
IMPORTANCE_PERCEPTIBLE
IMPORTANCE_SERVICE
IMPORTANCE_VISIBLE
多了一个可察觉(IMPORTANCE_PERCEPTIBLE),我就不明白了。
这是官方解释,说后台播放音乐就是这种优先级。但是后台(IMPORTANCE_BACKGROUND)呢?
Constant for importance: this process is running something that is considered to be actively perceptible to the user. An example would be an application performing background music playback.
ID从来不亮
11 years, 6 months ago