Android releases phone resources, process release priority
When system resources are consumed, Android kills some processes to be free of resources, the priority order of the process is as follows, (priority from top to bottom, from high to low, the lower the process the more easily killed by the system)
1. Foreground process
Contains a foreground activity that contains a running broadcast receiver (Broadcastreceiver), a running service (activity required by the current user, and activity that is running at the top of the screen).
2. Visual process
Contains a visualization of the activity (activity is visible)
3. Service Process
A service with a double opening
4. Background process
Contains an acitivity that can kill a process at any time to reclaim memory
5. Empty process
Does not contain any of the four components of any one of the processes.
Android Process description