Method and device for displaying window applied to android platform
A technology for displaying windows and windows, applied in the field of communication
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 2
[0099] Optionally, the method further includes:
[0100] When the Activity needs to be closed and the Activity to be closed is started in a window mode, it is determined whether there is a window associated with the Activity to be closed;
[0101] If there is no activity associated with the window of the Activity to be closed, after closing the Activity to be closed, delete the associated window object multiWinInfo of the Activity to be closed;
[0102] Among them, the window associated activity of the activity to be closed is: in the opened activity, the recorded window ID is the same as other activities recorded by the activity to be closed; the associated window object of the activity to be closed is: record The window ID of the window object is the same as the window ID of the Activity record to be closed.
[0103] Optionally, when the Activity needs to be closed and the Activity is started in a full-screen mode, the existing processing method of the Android platform can be used f...
example 5
[0132] When the window operation instruction is to close the window (MULTIWIN_CONTROL_CLOSE), close all the activities corresponding to the window (you can determine the window to be closed and the activities corresponding to the window according to the winId in the instruction), and delete the window object multiWinInfo ( The window object to be deleted can be determined according to the winId in the command).
[0133] When the window operation instruction is to hide / restore the window (MULTIWIN_CONTROL_HIDE), if the window is hidden, the window is placed under the desktop (the page corresponding to the launcher), and if the window is restored, the window is placed on the desktop. Specifically, when the window is hidden, the page corresponding to each Activity of the window is placed underneath. Optionally, in specific implementation, it can be searched from bottom to top from the historyRecord queue used to manage each Activity, priority Deal with activities that are not displa...
example 1
[0137] Example 1: Start Activity and create a new window display method
[0138] Figure 4 This is a flowchart of Example 1 of the present invention. Such as Figure 4 As shown, the method of Example 1 includes the following steps:
[0139] S401: Determine to start Activity;
[0140] S402: Determine to open a new window when starting the Activity;
[0141] S403: Assign a window identifier winId to the new window;
[0142] S404: Generate a window object multiWinInfo, set the second window attribute data winData2 in multiWinInfo, and record the allocated winId in multiWinInfo;
[0143] S405: Add the generated multiWinInfo to the window queue multiWinRecord;
[0144] S406: Set winData1 in the intent used to start the Activity according to winData2, and place the allocated winId in the intent, so that the Activity displays the window according to winData1 and records the winId.
[0145] Example 2: Start Activity and create a new window
[0146] Figure 5 It is a flowchart of Example 2 of the p...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 