Summarize the process in Android

Source: Internet
Author: User

the hierarchy of processes in Android is as follows (high-to-low importance):

1, the front-end process. As the name implies, the front-end process is currently displayed on the screen and user interaction process, the number of front-end processes in the system, and this process is the most impact on the user experience, only the system's memory is scarce enough to maintain and the user's basic interaction when the front-end process is destroyed. This process is therefore of the highest importance.

2, visible process. Visible process also has a visual interface, but currently not the topmost interface (the topmost interface in the front-end process), the visible process calls OnPause (), visible process is less important than the front-end process, but the interaction is still very large, because the user may switch over at any time, So the system won't easily destroy it.

3, the service process. A service process, which calls the StartService (), is the daemon that is said in Unix, is not visible to the user, but ensures that some important events are monitored or maintained in certain States, such as network data transmission, background music playback, Such processes are not sufficient and are destroyed in order to ensure the smooth running of the front-end interaction.

4, the background process. This is called the background process may be confused with the general sense of the background process, to show that the background process in Android is called OnStop (), can be understood as the user does not have a desire to interact with the process, so the background process here is a bit "to destroy" meaning.

5, empty process. This is a system caching mechanism, is actually a process shell, when a new process is created, this empty process can speed up the process creation, when the system memory is low, first destroy the empty process.



Summarize the process in Android

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.