Android's 5 process levels

Source: Internet
Author: User
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

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.