1, the process according to the priority level divided into different levels Fvsbe
1.1 Foreground Process: User can see an activity interface in the process (can get focus)
1.2 Visible Process: The user is still visible to this process, but cannot be manipulated
1.3 Service Process: If a process has a service running in the background
1.4 Background Process Daemon: An activity is not visible now, but runs in the background
1.5 Empty process: No process exists for any active component
Low memory will turn off the 5/4/3 in turn, will be re-opened when the memory is 3
2. Important priority: Foreground process > Visual process > Service process > Background process > Empty process
The Android system will keep the application's processes as consistent as possible, even after the app exits ... However, if you find that the memory is not enough, to start a new process, it will follow the priority order of the process to kill some of the old process
Android Thread Priority