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