Miui7,android version 5.0.2, one program sends custom broadcasts, another program is not receiving

Source: Internet
Author: User

Learn from the first line of code--android, the fifth chapter on the broadcast packet related knowledge, the front to get the broadcast program routines can run through, but in 5.3.2, program A sends a custom broadcast, and receives a custom broadcast, and program B also receives the custom broadcast. Actually write code test program a sent only after the program A has received the change custom broadcast, program B did not receive, I think is my project configuration problem, so downloaded the book of the routine run directly, the phenomenon is still the case, program a after sending the broadcast only program a can receive, program B did not receive.

Do not know what is the reason, the test of the phone is Xiaomi 2s, the system miui7,android version 5.0.2.

Also tested on the simulator above, the same phenomenon that the emulator Android version is 5.0.1

Miui7,android version 5.0.2, one program sends custom broadcasts, another program is not receiving

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.