Android Broadcast Processing Optimization via Message Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In the Android system, when broadcast receivers are registered using static registration, normal broadcast messages are inefficiently processed, leading to high system resource consumption and poor stability due to their placement in ordered broadcast queues, which slows down the processing of both normal and ordered broadcast messages.
Innovation Solution
A method that acquires and determines the type of broadcast messages in the queue, allowing normal broadcast messages to be sent directly to corresponding receivers without waiting for feedback from previous receivers, thereby improving processing speed and reducing resource consumption by optimizing the broadcast processing mechanism.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If normal broadcast messages are placed in ordered broadcast queues for static registration, then broadcast receivers can be reliably notified, but processing efficiency decreases and system resource consumption increases
Solution Approach 1:
The patent segments broadcast messages into two distinct types: normal broadcast messages and ordered broadcast messages. This segmentation allows different processing mechanisms to be applied to each type, optimizing both reliability and efficiency. Normal broadcast messages use direct sending to improve efficiency, while ordered broadcast messages maintain the queueing mechanism for reliability.
Solution Approach 2:
The patent applies different quality characteristics to different parts of the broadcast processing system. By determining the type of broadcast message and applying specialized handling accordingly, the system optimizes local processing behavior - using direct sending for normal messages and ordered queueing for ordered messages, thereby resolving the contradiction between efficiency and reliability.
2Stability of the object's composition
If normal broadcast messages wait for feedback from previous receivers in ordered queues, then processing order is maintained, but processing time increases
Solution Approach 1:
The patent segments broadcast messages into normal and ordered types, allowing normal broadcast messages to bypass the feedback-waiting mechanism entirely. This segmentation enables normal messages to be sent directly to all registered receivers without waiting for previous messages, dramatically reducing processing time while maintaining stable order through the ordered broadcast message type for cases where sequencing is required.
Solution Approach 2:
The patent introduces dynamic processing behavior based on message type. The system determines the type of broadcast message at runtime and applies different processing strategies accordingly - direct sending for normal messages and sequential processing with feedback for ordered messages. This dynamic approach optimizes processing time while maintaining stability where needed.
3Device complexity
If all broadcast messages use the same processing mechanism, then system complexity is reduced, but resource consumption increases
Solution Approach 1:
The patent applies local quality by implementing type-specific processing mechanisms within the broadcast system. By determining the message type and applying specialized handling (direct sending vs. ordered queueing), the system optimizes resource consumption for each message type while maintaining manageable overall complexity through a unified processing framework.
Solution Approach 2:
The patent changes the processing parameters based on message type. The system determines the type of broadcast message and adjusts processing parameters accordingly - using direct sending parameters for normal messages and ordered queueing parameters for ordered messages. This parameter change approach optimizes resource consumption without requiring completely separate processing systems.
Data Source
AI summary
A method for broadcast processing, a non-transitory storage medium and an electronic device are provided. The method includes: acquiring a currently-sending broadcast message in a broadcast queue; determining a type of the broadcast message; and calling an interface configured to send the broadcast message and sending the broadcast message to a corresponding broadcast receiver.


