Differences between dynamic registration broadcast and static registration Broadcast

Source: Internet
Author: User

Differences between dynamic registration broadcast and static registration Broadcast

There are two types of broadcast receiver registration: static registration and dynamic registration.

 

The difference between the two and Their Broadcast Reception:

1. Dynamic Registration broadcast is always faster than static registration broadcast. No matter how high the static registration priority is, no matter how low the Dynamic Registration priority is.

2. Dynamic Registration broadcast is not a resident broadcast, that is, the life cycle of the broadcast following the activity. Note: remove the broadcast receiver before the activity ends.

Static registration is resident, that is to say, even if the app has exited, it can still be received through the corresponding broadcast, but this description may not be valid since Android 3.1.

Please follow http://www.cnblogs.com/lwbqqyumidi/p/4168017.html for details

3. In the same priority, whoever starts fast first will receive the broadcast first.

 

Related Article

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.