Android broadcast method (3)

Android broadcasts can be divided into standard broadcasts and ordered broadcasts. As the name suggests, one listens to the loudspeaker and the other transmits the microphone. Let’s start with the use of Android’s own system broadcast: Broadcast Action Name The role of broadcast ADD_SHORTCUT_ACTION When adding a shortcut to the system, the system sends a […]

Exploring Android Broadcasting: Demystifying the Magic of Android Broadcasting Mechanism

One broadcast mechanism The broadcast (Broadcast) mechanism in Android is used for communication between processes/threads, which uses the observer mode. Observer mode is a software design mode, which is a message-based publish/subscribe event model. In this model, the message publisher is the broadcast sender in the broadcast mechanism, and the message subscriber is the broadcaster […]

Android broadcast mechanism

Directory 1. Classification of broadcasting 1.1 Standard broadcast 1.2 Orderly broadcast 2. Broadcast receiver registration 2.1 Dynamic registration 2.2 Static registration 3. Custom broadcast 3.1 Send standard broadcast 3.2 Send ordered broadcast 4. Local broadcast 1. Broadcast classification 1.1 Standard Broadcast It is a broadcast that is executed completely asynchronously. After the broadcast is sent […]