One, Foreground process (foreground processes, highest priority)
1, is in the Activity Resume () state
2, is in the state of interaction with the bound service
3, is in the service in the foreground running state (Startforeground () is called)
4. Service life cycle function is being executed (onCreate (), OnStart (), Ondestory ())
5. Boradcastreceiver is executing the onreceive () method
Killing Foreground Process requires a user response because this security priority is the highest
Second, Visible Process
Activity is not displayed on the front, but it is not completely hidden and can be seen, such as a popup dialog box. (such as when the input method, input method even if this)
Third, Service Process
A Service that is running, not in the above two states
Iv. Background Process
The Invisible Activity process (OnStop () is called).
Five, Empty Process
There is no process to run any components, this process is reserved primarily for the needs of the cache
Android's 5 process levels