Android Broadcast Receiver Queue Management for Response Time
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In Android systems, the increasing number of applications subscribing to broadcast messages leads to delayed responses due to queue occupation, affecting the response time of application programs.
Innovation Solution
A method and apparatus that acquire and manage a receiver queue for broadcast messages by removing non-launched third-party applications, allowing for faster message transmission by prioritizing relevant receivers based on application type and launching state.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If all subscribed applications are retained in the receiver queue to ensure comprehensive broadcast message delivery, then the completeness of message delivery is improved, but the response time of the broadcast message deteriorates due to queue occupation by too many applications
Solution Approach 1:
The patent extracts and removes specific receivers from the broadcast receiver queue based on their launching state. Non-launched receivers are identified and removed from the queue before broadcast message processing, reducing queue length and improving response time while maintaining delivery to active applications
Solution Approach 2:
The patent applies different processing rules to different receivers in the queue based on their application type and launching state. Launched receivers are processed normally while non-launched receivers are removed, creating differentiated quality of service within the queue system
2Reliability
If all subscribed applications are retained in the receiver queue to ensure comprehensive broadcast message delivery, then the completeness of message delivery is improved, but the system resource utilization deteriorates due to unnecessary processing overhead
Solution Approach 1:
The patent extracts and removes specific receivers from the broadcast receiver queue based on their launching state. Non-launched receivers are identified and removed from the queue before broadcast message processing, reducing queue length and improving response time while maintaining delivery to active applications
Solution Approach 2:
The patent applies partial action by selectively processing only the necessary subset of receivers (launched applications) rather than all subscribed applications. This partial processing approach eliminates wasted resources on non-launched applications while maintaining adequate message delivery to active applications
Data Source
AI summary
A broadcast sending control method includes: acquiring a receiver queue corresponding to a broadcast message; acquiring an application type and a launching state of a first receiver, wherein the first receiver is any receiver in the receiver queue; removing, in a case where the application type is a predetermined application type and the launching state is a predetermined launching state, the first receiver from the receiver queue; and sending, according to the receiver queue from which the first receiver has been removed, the broadcast message.


