Broadcast, local broadcast (), broadcast

Source: Internet
Author: User

Broadcast, local broadcast (), broadcast

There is a method in the broadcast method. This is a very old one, but you may not know about it. LocalBroadcastManager. This is not in the native api, but in the library, so I didn't know at the time ,, the supported libraries are v4 and v7, which may not be used by everyone. Therefore, this supported library is added. Learn more about it. In combination with my own projects, the application scenario of this class first caused a problem because some requirements need to be sent in appilcation. I sent it once and received it twice. However, when a third party is integrated, the server starts a new process. The result is that the appilcation is initialized twice, so it is accepted twice. The LocalBroadcastManager class transmits the content of the current process. If it is not the current process, it will not be received.

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.