Android Message Box Routing to External Screens via Screen Identity
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Android systems cannot display message boxes on external large screens when in computer mode, limiting flexibility and user experience.
Innovation Solution
A method and apparatus that enable message boxes to be displayed on external screens by adding a screen interface to the communication between the message box object and the Notification Management Service (NMS) in the Android system, allowing the system to acquire and display the message box on the appropriate screen identity.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If the Android system displays message boxes on the mobile phone screen only, then the system simplicity is maintained, but the display flexibility is limited
Solution Approach 1:
The message box object is designed to be universal, capable of displaying on multiple screen types (mobile phone screen and external large screen). The system enables the same message box mechanism to function across different display devices through the external screen interface, achieving multi-functionality without requiring separate message box implementations for each device type.
Solution Approach 2:
An intermediary mechanism is introduced between the message box object and the display system. This intermediary involves the screen identity acquisition process and the NMS (Notification Management Service) integration, which mediates the communication between the message box object and the external screen, enabling flexible display while maintaining system structure.
2Manufacturing precision
If the message box object does not acquire screen identity, then the object simplicity is maintained, but the display precision is insufficient
Solution Approach 1:
The screen identity is acquired in advance during the message box object creation process. The context object is transmitted into the message box object beforehand, containing the screen identity information. This preliminary acquisition ensures that when the message box needs to display, the screen identity is already available, improving display precision without adding complexity during the display operation itself.
3Productivity
If the NMS does not communicate with the message box object through interfaces, then the system simplicity is maintained, but the information transmission efficiency is reduced
Solution Approach 1:
The communication interface between the NMS and the message box object is designed with multi-functionality. The interface not only transmits message box information but also carries screen identity information and enables control operations. This universal interface approach improves information transmission efficiency while avoiding the need for multiple separate communication channels.
Data Source
AI summary
A method for displaying a message box, a terminal device and a non-transitory computer-readable storage medium are disclosed. The method may be performed by an Android system operated terminal device, the Android system may include an application layer, an application framework layer, and NMS; and the method may include, acquiring, a context object corresponding to an application, and creating a message box object, in response to a start of the application when the terminal device is connected with a screen external to the terminal device; adding the message box object into the NMS, through a preset enqueue interface, reading the screen identity in the message box object through a set screen interface; and displaying the message box object on the external screen corresponding to the screen identity through the NMS.


