Android (Java) Learning note 172:android Broadcasting mechanism

Source: Internet
Author: User

Android broadcast mechanism

The Android system has a wide variety of broadcasts, various broadcasts running on the Android system, and a variety of broadcasts are registered to Android when the System/application program runs. When Android receives a broadcast, it determines what kind of event is required for the broadcast, and then registers the event with the application that needs the event . different broadcasts may handle different events, or they may handle the same broadcast event, which requires an Android filter . For example, in a classic phone blacklist application, the Prime minister by storing the blacklist number in the database, when the incoming call, we receive the call broadcast and the blacklist number and the database to match a data, if the match will be processed accordingly, such as hanging off the phone, such as mute.

Android (Java) Learning note 172:android Broadcasting mechanism

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.