1. Foreground process:
Frontend Process status:
Active in activity resume () Status
Interacting with Bound Service
The service is running on the frontend. (startforeground () is called, for example, playing music)
The service lifecycle function is being executed (oncreate (), onstart (), ondestory ())
Broadcastreceiver is executing the onreceive () method
User response is required to kill foreground process-the highest security priority
2. Visible Process
Display process: the activity is no longer displayed on the front end. It is not completely hidden and visible. For example, a dialog box is displayed. (Input methed)
3. Service Process
In the running non-foreground, visible process.
4. Background Process
Invisible. activity process (onstop () called)
5. Empty procecc
No compuments process is running, and the process is retained mainly for caching purposes. Five process levels for Android