Android‘s process

application:  a map of some components.

generaly,one application ,one process.

generaly,when u close the app just as close all the activity.

the process of application is can not be closed, it will be run in the background all the time.

so, what‘s time the android to closing the process of app?

There is a group of strategy to help me manager the process:

The process has diffrent priority:

1. front process :User can see one of activity of the process and can operate the activity

2.visible process:user can see one of activity of the process but can not operate the activity. like dialog.

3.service process: if one service of app run in the background,

4.background process:The process has no any service is runing. like u opened a activity,then press the home key.

5.empty process: The process has no any activty component exits.

The android kill the process order by the priority.(5,4,3..)but when system has more  ram it will be recovery which be killed after a little time. 

Android‘s process,,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。