Application interface display method and electronic device in multi-window projection scenario

By updating the application interface configuration parameters and adjusting the window size, the problem of poor interface display in multi-window screen projection scenarios is solved, the best display effect in different screen directions is achieved, and the user experience is improved.

CN113741840BActive Publication Date: 2024-10-29HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110836751.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-10
Publication Date
2024-10-29
Estimated Expiration
2040-09-10

AI Technical Summary

Technical Problem

In a multi-window screen projection scenario, the existing technology cannot effectively adapt the application interface to be displayed in horizontal or vertical screen, causing the interface to appear abnormally and affecting the user experience.

Method used

By receiving the user's screen rotation request, the application interface configuration parameters are updated, and the window size and layout are adjusted to adapt to the display state of the second device, ensuring that the application interface is displayed in the best state in landscape or portrait mode.

Benefits of technology

It improves the user's screencasting experience, solves the problem of poor interface display, and enables flexible adaptation and complete display of the interface in different screen directions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113741840B_ABST
    Figure CN113741840B_ABST
Patent Text Reader

Abstract

The present application discloses an application interface display method and an electronic device in a multi-window projection scenario, which relates to the field of electronic technology. When projecting multiple windows, the projection interface can be projected in an adapted state and adapted size, thereby improving the user's projection experience. In the present application, in the process of projecting the screen to the second device, the first device re-updates the interface configuration parameters of the first application and re-sends the updated interface configuration parameters of the first application to the second device based on the received screen rotation request for initiating the horizontal and vertical screen switching of the projection window (such as the window of the first application), so as to realize the projection of the interface of the first application to the second device in an adapted state (such as horizontal screen display or vertical screen display) and adapted size.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of electronic technology, and in particular to an application interface display method and an electronic device in a multi-window projection scenario. Background Art

[0002] With the development of application display technology, more and more electronic devices support multi-window screen projection technology. Multi-window screen projection technology is to project multiple application interfaces running on one electronic device (such as a first device) to another electronic device (such as a second device).

[0003] Before the first device projects the screen to the second device in multiple windows, in response to the user's start operation on the application on the first device (optionally, the start operation occurs on the first device or the second device), the first device optionally starts the application interface in the form of a free floating window. In addition, the first device transmits a video stream to the second device to complete the projection of the application interface on the second device.

[0004] In some scenarios, applications will provide horizontal and vertical screen switching to fill the entire display area and give users a better user experience, such as video playback applications. However, since the display range of the free floating window cannot cover the entire display area of ​​the device, the electronic device is usually unable to respond to the user's request to rotate the free floating window. Therefore, it will affect the interface presentation effect after the free floating window application is projected. For example, the free floating window video application cannot be displayed in the best horizontal screen effect. In addition, even if the electronic device can respond to the user's request to rotate the free floating window, since there is only one direction for the electronic device screen to rotate, multiple free floating windows cannot be rotated independently according to their respective needs, but can only rotate in the same direction. Some applications (such as video applications) do not have a good presentation effect when displayed in portrait mode, and some applications (such as WeChat) do not have a good presentation effect when displayed in portrait mode. Therefore, based on the conventional multi-window projection technology, the application interface after projection may display abnormally (such as interface offset, incomplete interface content display, etc.), and the presentation effect is poor. Summary of the invention

[0005] The embodiments of the present application provide an application interface display method and an electronic device in a multi-window screen projection scenario, which can realize screen projection of the projection interface in an adapted state (such as horizontal screen display or vertical screen display) and an adapted size when projecting multiple windows, thereby improving the user's screen projection experience.

[0006] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:

[0007] In a first aspect, a method for displaying an application interface in a multi-window projection scenario is provided, and the method is applied to a scenario in which a first device projects a screen to a second device, and the method includes: the first device receives a screen rotation request for initiating a horizontal or vertical screen switching of a window of a first application, wherein the first application is projected by the first device on the second device; when the first device determines that the first application supports window adjustment, the first device updates the interface configuration parameters of the first application according to the received screen rotation request; the first device sends first information including the interface configuration parameters of the first application to the second device, and the first information is used for the horizontal or vertical screen switching of the window of the first application on the second device.

[0008] According to the technical solution provided by the first aspect above, the first device re-updates the interface configuration parameters of the first application and re-sends the updated interface configuration parameters of the first application to the second device based on the received screen rotation request for initiating the horizontal and vertical screen switching of the window of the first application, so as to achieve that the interface of the first application projected from the first device to the second device can be displayed on the second device in an adapted state (such as horizontal or vertical display) and adapted size, thereby improving the user's screen projection experience.

[0009] In one possible implementation, the first device receives a screen rotation request from a user, including: the first device receives a screen rotation request from a second device, where the screen rotation request is determined by the second device according to a first operation of the user on the second device. In the present application, the screen rotation request may be triggered by a user operating the first application interface displayed on the second device during the process of projecting the first application from the first device to the second device.

[0010] In one possible implementation, the first device receives a screen rotation request from a user, including: in response to receiving a second operation of the user on the first device, the first device determines that the screen rotation request from the user is received. In the present application, the screen rotation request can be triggered by a user operating the first application interface displayed on the first device during the process of projecting the first application from the first device to the second device.

[0011] In one possible implementation, the first device updates the interface configuration parameters of the first application according to the received screen rotation request, including: the first device redetermines the window size of the first application according to the screen rotation request; the first device updates the interface configuration parameters of the first application according to the redetermined window size of the first application. In the present application, the first device can redetermine the window size of the first application according to the screen rotation request, and then update the interface configuration parameters of the first application according to the redetermined window size of the first application. Through this solution, the interface of the first application can be displayed on the second device in an adapted state (such as horizontal screen display or vertical screen display) and an adapted size according to the user's manipulation.

[0012] In a possible implementation, the first device updates the interface configuration parameters of the first application according to the re-determined window size of the first application, including: if the screen rotation request is used to switch the window of the first application from portrait to landscape display, the first device adjusts the window size of the first application according to the screen rotation request, so that the width of the window of the first application is greater than the height; if the screen rotation request is used to switch the window of the first application from landscape to portrait display, the first device adjusts the window size of the first application according to the screen rotation request, so that the width of the window of the first application is less than the height. Through this solution, the interface of the first application can be displayed on the second device in an adapted state (such as landscape display or portrait display) and an adapted size according to the user's manipulation.

[0013] In a possible implementation, the first device updates the interface configuration parameters of the first application according to the re-determined window size of the first application, including: the first device obtains first configuration information according to the re-determined window size of the first application; the first configuration information is the interface boundary information of the first application; the first device obtains second configuration information according to the interface boundary information of the first application; the second configuration information includes one or more of the following: the rotation of the first application, the icons displayed on the first application interface, the text displayed on the first application interface, the display position, size and color of each icon displayed on the first application interface, the display position, size and color of each text displayed on the first application interface; the first device removes the first application process from the screen configuration monitoring; the first device updates the first configuration information and the second configuration information to the interface configuration parameters of the first application. In the present application, the first device can redetermine the window size of the first application according to the screen rotation request, and then realize the update of the interface configuration parameters of the first application according to the re-determined window size of the first application. Specifically, the re-determined window size of the first application is used to determine the interface boundary information (i.e., the first configuration information) of the first application in the interface configuration parameters, and the first configuration information is used to determine the orientation of the first application in the interface configuration parameters, the icons displayed on the first application interface, the text displayed on the first application interface, the display position, size, and color of each icon displayed on the first application interface, the display position, size, and color of each text displayed on the first application interface, etc. The first application process is removed from the screen configuration monitoring to prevent the first application window on the second device from switching between horizontal and vertical screens as the screen of the first device rotates.

[0014] In a possible implementation, the first device redetermines the window size of the first application according to the screen rotation request, including: the first device redetermines the window size of the first application according to the screen rotation request based on the application development attributes and / or application data configuration of the first application; or, the first device redetermines the window size of the first application according to the screen rotation request based on the application development attributes and / or application data of the first application, and the size of the first device display screen; or, the first device redetermines the window size of the first application according to the screen rotation request based on the application development attributes and / or application data of the first application, and the size of the second device display screen. In this application, the first device supports redetermining the window size of the first application according to the application development attributes and / or application data configuration, or in combination with the size of the first device display screen or the size of the second device display screen. This enables the interface of the first application to be displayed on the second device in an adapted state (such as horizontal screen display or vertical screen display) and an adapted size, thereby improving the user's screen projection experience.

[0015] In a possible implementation, the method further includes: the first device determines the application category of the first application; if the application category of the first application is a first-category application, the first device redetermines the window size of the first application based on the display screen size of the second device according to the screen rotation request; if the application category of the first application is a second-category application, the first device redetermines the window size of the first application based on the display screen size of the first device according to the screen rotation request. By selecting whether to determine the window size of the first application with reference to the display screen size of the first device or the display screen size of the second device according to the application category, the interface of the first application can be displayed on the second device in an adapted state (such as horizontal or vertical display) and an adapted size, thereby improving the user's screen projection experience.

[0016] In a possible implementation, the first type of application is a video application.

[0017] In a possible implementation, the first operation includes any one of the following: rotating the screen, clicking a virtual button, a preset touch gesture, a preset operation on actual hardware, or a voice command.

[0018] According to a second aspect, an electronic device is provided, comprising: a processing unit, for receiving a screen rotation request for initiating a horizontal or vertical screen switching of a window of a first application, the first application being projected from the first device to the second device; and when it is determined that the first application supports window adjustment, updating the interface configuration parameters of the first application according to the screen rotation request; and a transceiver unit, for sending first information including the interface configuration parameters of the first application to the second device, the first information being used for the horizontal or vertical screen switching of the window of the first application on the second device.

[0019] According to the technical solution provided by the second aspect above, the first device re-updates the interface configuration parameters of the first application and re-sends the updated interface configuration parameters of the first application to the second device based on the received screen rotation request for initiating the horizontal and vertical screen switching of the window of the first application, so as to achieve that the interface of the first application projected from the first device to the second device can be displayed on the second device in an adapted state (such as horizontal or vertical display) and adapted size, thereby improving the user's screen projection experience.

[0020] In one possible implementation, the processing unit is specifically used to receive a screen rotation request from the second device, which is determined by the second device according to a first operation of the user on the second device. In the present application, the screen rotation request can be triggered by a user operating the first application interface displayed on the second device during the process of projecting the first application from the first device to the second device.

[0021] In one possible implementation, the processing unit is specifically used to receive a screen rotation request from the first device determined according to a second operation of the user on the first device. In the present application, the screen rotation request may be triggered by a user operating the first application interface displayed on the first device during the process of projecting the first application from the first device to the second device.

[0022] In one possible implementation, the processing unit updates the interface configuration parameters of the first application according to the received screen rotation request, including: the processing unit redetermines the window size of the first application according to the screen rotation request; and updates the interface configuration parameters of the first application according to the redetermined window size of the first application. In the present application, the first device can redetermine the window size of the first application according to the screen rotation request, and then update the interface configuration parameters of the first application according to the redetermined window size of the first application. Through this solution, the interface of the first application can be displayed on the second device in an adapted state (such as horizontal screen display or vertical screen display) and an adapted size according to the user's manipulation.

[0023] In a possible implementation, the processing unit updates the interface configuration parameters of the first application according to the re-determined window size of the first application, including: if the screen rotation request is used to switch the window of the first application from portrait display to landscape display, the processing unit adjusts the window size of the first application according to the screen rotation request, so that the width of the window of the first application is greater than the height; if the screen rotation request is used to switch the window of the first application from landscape display to portrait display, the processing unit adjusts the window size of the first application according to the screen rotation request, so that the width of the window of the first application is less than the height. Through this solution, the interface of the first application can be displayed on the second device in an adapted state (such as landscape display or portrait display) and an adapted size according to the user's manipulation.

[0024] In a possible implementation, the processing unit updates the interface configuration parameters of the first application according to the re-determined window size of the first application, including: the processing unit obtains first configuration information according to the re-determined window size of the first application; the first configuration information is the interface boundary information of the first application; the processing unit obtains second configuration information according to the interface boundary information of the first application; the second configuration information includes one or more of the following: the rotation of the first application, the icons displayed on the first application interface, the text displayed on the first application interface, the display position, size and color of each icon displayed on the first application interface, the display position, size and color of each text displayed on the first application interface; the processing unit removes the first application process from the screen configuration monitoring; and updates the first configuration information and the second configuration information to the interface configuration parameters of the first application. In the present application, the first device can redetermine the window size of the first application according to the screen rotation request, and then realize the update of the interface configuration parameters of the first application according to the re-determined window size of the first application. Specifically, the re-determined window size of the first application is used to determine the interface boundary information (i.e., the first configuration information) of the first application in the interface configuration parameters, and the first configuration information is used to determine the orientation of the first application in the interface configuration parameters, the icons displayed on the first application interface, the text displayed on the first application interface, the display position, size, and color of each icon displayed on the first application interface, the display position, size, and color of each text displayed on the first application interface, etc. The first application process is removed from the screen configuration monitoring to prevent the first application window on the second device from switching between horizontal and vertical screens as the screen of the first device rotates.

[0025] In a possible implementation, the processing unit redetermines the window size of the first application according to the screen rotation request, including: the processing unit redetermines the window size of the first application according to the screen rotation request based on the application development attributes and / or application data configuration of the first application; or, according to the screen rotation request, redetermines the window size of the first application based on the application development attributes and / or application data of the first application, and the size of the display screen of the first device; or, according to the screen rotation request, redetermines the window size of the first application based on the application development attributes and / or application data of the first application, and the size of the display screen of the second device. In this application, the first device supports redetermining the window size of the first application according to the application development attributes and / or application data configuration, or in combination with the size of the display screen of the first device or the size of the display screen of the second device. This enables the interface of the first application to be displayed on the second device in an adapted state (such as horizontal screen display or vertical screen display) and an adapted size, thereby improving the user's screen projection experience.

[0026] In a possible implementation, the processing unit is also used to determine the application category of the first application; if the application category of the first application is a first-category application, the processing unit redetermines the window size of the first application based on the display screen size of the second device according to the screen rotation request; if the application category of the first application is a second-category application, the processing unit redetermines the window size of the first application based on the display screen size of the first device according to the screen rotation request. By selecting whether to determine the window size of the first application with reference to the display screen size of the first device or the display screen size of the second device according to the application category, the interface of the first application can be displayed on the second device in an adapted state (such as horizontal or vertical display) and an adapted size, thereby improving the user's screen projection experience.

[0027] In a possible implementation, the first type of application is a video application.

[0028] In a possible implementation, the first operation includes any one of the following: rotating the screen, clicking a virtual button, a preset touch gesture, a preset operation on actual hardware, or a voice command.

[0029] According to a third aspect, an electronic device is provided, comprising: a memory for storing a computer program; a transceiver for receiving or sending a radio signal; a processor for executing the computer program, so that the electronic device receives a screen rotation request for initiating a horizontal or vertical screen switching of a window of a first application, wherein the first application is projected by the first device onto a second device; when it is determined that the first application supports window adjustment, the interface configuration parameters of the first application are updated according to the received screen rotation request; and first information including the interface configuration parameters of the first application is sent to the second device, wherein the first information is used for the horizontal or vertical screen switching of the window of the first application on the second device.

[0030] According to the technical solution provided in the third aspect, the first device re-updates the interface configuration parameters of the first application and re-sends the updated interface configuration parameters of the first application to the second device based on the received screen rotation request for initiating the horizontal and vertical screen switching of the window of the first application, so as to achieve that the interface of the first application projected from the first device to the second device can be displayed on the second device in an adapted state (such as horizontal or vertical display) and adapted size, thereby improving the user's screen projection experience.

[0031] In one possible implementation, the processor is specifically used to receive a screen rotation request from the second device, which is determined by the second device according to a first operation of the user on the second device. In the present application, the screen rotation request can be triggered by a user operating the first application interface displayed on the second device during the process of projecting the first application from the first device to the second device.

[0032] In one possible implementation, the processor is specifically used to receive a screen rotation request from the first device determined based on a second operation of the user on the first device. In the present application, the screen rotation request may be triggered by a user operating the first application interface displayed on the first device during the process of projecting the first application from the first device to the second device.

[0033] In one possible implementation, the processor updates the interface configuration parameters of the first application according to the received screen rotation request, including: the processor redetermines the window size of the first application according to the screen rotation request; and updates the interface configuration parameters of the first application according to the redetermined window size of the first application. In the present application, the first device can redetermine the window size of the first application according to the screen rotation request, and then update the interface configuration parameters of the first application according to the redetermined window size of the first application. Through this solution, the interface of the first application can be displayed on the second device in an adapted state (such as horizontal screen display or vertical screen display) and an adapted size according to the user's manipulation.

[0034] In a possible implementation, the processor updates the interface configuration parameters of the first application according to the re-determined window size of the first application, including: if the screen rotation request is used to switch the window of the first application from portrait display to landscape display, the processor adjusts the window size of the first application according to the screen rotation request so that the width of the window of the first application is greater than the height; if the screen rotation request is used to switch the window of the first application from landscape display to portrait display, the processor adjusts the window size of the first application according to the screen rotation request so that the width of the window of the first application is less than the height. Through this solution, the interface of the first application can be displayed on the second device in an adapted state (such as landscape display or portrait display) and an adapted size according to the user's manipulation.

[0035] In a possible implementation, the processor updates the interface configuration parameters of the first application according to the re-determined window size of the first application, including: the processor obtains first configuration information according to the re-determined window size of the first application; the first configuration information is the interface boundary information of the first application; the processor obtains second configuration information according to the interface boundary information of the first application; the second configuration information includes one or more of the following: the rotation of the first application, the icons displayed on the first application interface, the text displayed on the first application interface, the display position, size and color of each icon displayed on the first application interface, the display position, size and color of each text displayed on the first application interface; the processor removes the first application process from the screen configuration monitoring; and updates the first configuration information and the second configuration information to the interface configuration parameters of the first application. In the present application, the first device can redetermine the window size of the first application according to the screen rotation request, and then realize the update of the interface configuration parameters of the first application according to the re-determined window size of the first application. Specifically, the re-determined window size of the first application is used to determine the interface boundary information (i.e., the first configuration information) of the first application in the interface configuration parameters, and the first configuration information is used to determine the orientation of the first application in the interface configuration parameters, the icons displayed on the first application interface, the text displayed on the first application interface, the display position, size, and color of each icon displayed on the first application interface, the display position, size, and color of each text displayed on the first application interface, etc. The first application process is removed from the screen configuration monitoring to prevent the first application window on the second device from switching between horizontal and vertical screens as the screen of the first device rotates.

[0036] In a possible implementation, the processor redetermines the window size of the first application according to the screen rotation request, including: the processor redetermines the window size of the first application according to the screen rotation request based on the application development attributes and / or application data configuration of the first application; or, according to the screen rotation request, redetermines the window size of the first application based on the application development attributes and / or application data of the first application, and the size of the display screen of the first device; or, according to the screen rotation request, redetermines the window size of the first application based on the application development attributes and / or application data of the first application, and the size of the display screen of the second device. In this application, the first device supports redetermining the window size of the first application according to the application development attributes and / or application data configuration, or in combination with the size of the display screen of the first device or the size of the display screen of the second device. This enables the interface of the first application to be displayed on the second device in an adapted state (such as horizontal screen display or vertical screen display) and an adapted size, thereby improving the user's screen projection experience.

[0037] In one possible implementation, the processor is also used to execute the computer program so that the electronic device determines the application category of the first application; if the application category of the first application is a first-category application, the processor redetermines the window size of the first application based on the display screen size of the second device according to the screen rotation request; if the application category of the first application is a second-category application, the processor redetermines the window size of the first application based on the display screen size of the first device according to the screen rotation request. By selecting whether to determine the window size of the first application with reference to the display screen size of the first device or the display screen size of the second device according to the application category, the interface of the first application can be displayed on the second device in an adapted state (such as horizontal or vertical display) and an adapted size, thereby improving the user's screen projection experience.

[0038] In a possible implementation, the first type of application is a video application.

[0039] In a possible implementation, the first operation includes any one of the following: rotating the screen, clicking a virtual button, a preset touch gesture, a preset operation on actual hardware, or a voice command.

[0040] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program code is stored. When the computer program code is executed by a processor, the method in any possible implementation of the first aspect is implemented.

[0041] In a fifth aspect, a chip system is provided, the chip system comprising a processor and a memory, wherein a computer program code is stored in the memory; when the computer program code is executed by the processor, the method in any possible implementation of the first aspect is implemented. The chip system may be composed of a chip, or may include a chip and other discrete devices.

[0042] According to a sixth aspect, a computer program product is provided, which, when executed on a computer, implements the method in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 An example diagram of a multi-screen collaboration scenario provided in an embodiment of the present application;

[0044] Figure 2 A schematic diagram of the hardware structure of a first device provided in an embodiment of the present application;

[0045] Figure 3 A schematic diagram of the hardware structure of a second device provided in an embodiment of the present application;

[0046] Figure 4 A schematic diagram of an application interface display process in a multi-window projection scenario provided by an embodiment of the present application;

[0047] Figure 5 A schematic diagram of a same-source screen projection provided in an embodiment of the present application;

[0048] Figure 6 A schematic diagram of a heterogeneous screen projection provided in an embodiment of the present application;

[0049] Figure 7 A flow chart of a method for displaying an application interface in a multi-window projection scenario provided by an embodiment of the present application;

[0050] Figure 8 An example diagram of the first operation of three types of users provided in the embodiment of the present application;

[0051] Fig. 9 A specific flow chart of updating the interface configuration parameters of the first application on a mobile phone provided in an embodiment of the present application;

[0052] Fig.10 An example of an application interface display effect in a screen projection scenario provided in an embodiment of the present application Figure 1 ;

[0053] Fig.11 A flowchart of another method for displaying an application interface in a multi-window projection scenario provided by an embodiment of the present application;

[0054] Fig.12 An example of an application interface display effect in a screen projection scenario provided in an embodiment of the present application Figure 2 ;

[0055] Fig.13 An example of an application interface display effect in a screen projection scenario provided in an embodiment of the present application Figure 3 ;

[0056] Fig.14 An example of an application interface display effect in a screen projection scenario provided in an embodiment of the present application Figure 4 ;

[0057] Fig.15 A schematic diagram of a first device jointly rendering a screen projection interface on a virtual screen provided in an embodiment of the present application;

[0058] Fig.16 A structural block diagram of an electronic device provided in an embodiment of the present application;

[0059] Fig.17 A structural block diagram of another electronic device provided in an embodiment of the present application;

[0060] Fig.18 A schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0062] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

[0063] The embodiment of the present application provides an application interface display method in a multi-window projection scenario, which is applied in a multi-screen collaboration process. Multi-screen collaboration refers to the communication connection established between devices (such as a first device and a second device) to achieve a multi-screen collaborative interaction function across devices and systems.

[0064] For example, after the first device and the second device establish a communication connection for multi-screen collaboration, one or more application interfaces launched on the first device can be synchronously displayed on the second device. The user can operate on the above one or more application interfaces through the hardware of the second device (such as keyboard, mouse, microphone, speaker, etc.). At the same time, the user can open a new application interface through the first device to further synchronize it to the second device. In addition, the user can also complete functions such as fast data sharing with the first device on the second device.

[0065] Please refer to Figure 1 , Figure 1 An example diagram of a multi-screen collaboration scenario is shown. Figure 1 As shown, it is assumed that a communication connection for multi-screen collaboration is established between the smartphone 110 (i.e., the first device) and the laptop 120 (i.e., the second device). After the communication connection is established between the smartphone 110 and the laptop 120, as shown in FIG. Figure 1 As shown, the notebook computer 120 is synchronously displayed with the WeChat displayed on the smart phone 110 Chat interface. Users can use any device of the smart phone 110 and the laptop computer 120 to chat in WeChat. Operate on the chat interface.

[0066] Through multi-screen collaboration, a convenient user experience can be provided for the user. For example, since the display screen size of the laptop 120 is often larger than the display screen size of the smartphone 110, the user's viewing experience can be improved. For another example, the mouse of the laptop 120 can act as the user's finger to realize the WeChat More accurate touch operation on the chat interface. For another example, the large-size physical keyboard of the laptop computer 120 can replace the small-size virtual input method window on the display screen of the smartphone 110 to achieve a better text entry experience. For another example, the multi-channel stereo speakers of the laptop computer 120 can replace the speakers of the smartphone 110 to output the audio from the smartphone 110 (such as from WeChat). The volume and sound quality of the voice messages in the chat interface, the music files being played by the smart phone 110, etc. can be improved.

[0067] Among them, in an embodiment of the present application, a wireless communication connection can be established between the first device and the second device through methods such as "touch", "scan" (such as scanning a QR code or a barcode), "approach automatic discovery" (such as with the help of Bluetooth or wireless fidelity (WiFi)). Among them, the first device and the second device can follow a wireless transmission protocol and transmit information through a wireless connection transceiver. Among them, the wireless transmission protocol may include but is not limited to a Bluetooth (bluetooth, BT) transmission protocol or a wireless fidelity (wireless fidelity, WiFi) transmission protocol. For example, a WiFi transmission protocol may be a WiFi P2P transmission protocol. The wireless connection transceiver includes but is not limited to Bluetooth, WiFi and other transceivers. Information transmission between the first device and the second device is achieved through wireless pairing. Among them, the information transmitted between the first device and the second device includes but is not limited to content data to be displayed (such as a standard video stream) and control instructions.

[0068] Alternatively, a wired communication connection may be established between the first device and the second device. For example, a wired communication connection is established between the first device and the second device via a video graphics array (VGA), a digital visual interface (DVI), a high definition multimedia interface (HDMI), or a data transmission line. Information transmission is achieved between the first device and the second device via the established wired communication connection. This application does not limit the specific connection method between the first device and the second device.

[0069] In a method for displaying an application interface in a multi-window screen projection scenario provided in an embodiment of the present application, exemplarily, after a communication connection for multi-screen collaboration is established between a first device and a second device, assuming that in response to a user's startup operation on one or more applications on the first device, the first device will start projecting one or more application interfaces on the first device to the second device in the form of a free floating window. In some embodiments, when the first device starts a free floating window application, it will render the free floating window application interface to a virtual screen (virtual display). Then, the Surface corresponding to the virtual screen is encoded into a standard video stream and transmitted to the second device, thereby completing the multi-screen collaboration of multiple windows on the first device and the second device. Based on the multi-screen collaboration of multiple windows on the first device and the second device, the user can collaboratively manipulate the first device to start one or more application interfaces through the first device and the second device.

[0070] In the embodiment of the present application, the first device and the second device both include a display screen. The first device and the second device may include, but are not limited to, a smart phone, a netbook, a tablet computer, a smart watch, a smart bracelet, a phone watch, a smart camera, a PDA, a personal computer (PC), a personal digital assistant (PDA), a portable multimedia player (PMP), (augmented reality, AR) / virtual reality (VR) equipment, a television, a projection device, or a somatosensory game console in a human-computer interaction scene. Alternatively, the first device and the second device may also be electronic devices of other types or structures, which are not limited in the present application.

[0071] Usually, in order to maximize the advantages of multi-window screen projection technology, multi-window screen projection can be applied between a portable device (ie, the first device) and a large-screen device (ie, the second device). For example, the portable device is a smart phone, and the large-screen device is a laptop. For another example, the portable device is a tablet computer, and the large-screen device is a TV. Of course, this application does not limit the specific devices in the multi-screen collaboration scenario. As mentioned above, the first device and the second device can be any electronic device that supports multi-screen collaboration, such as a smart phone, a netbook, a tablet computer, a smart watch, a smart bracelet, a phone watch, a smart camera, a PDA, a PMP, an AR / VR device, or a TV.

[0072] Please refer to Figure 2 , Figure 2 Taking a smart phone as an example, a hardware structure diagram of a first device provided by an embodiment of the present application is shown. Figure 2As shown, the first device may include a processor 210, a memory (including an external memory interface 220 and an internal memory 221), a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0073] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the first device. In other embodiments of the present application, the first device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0074] The processor 210 may include one or more processing units. For example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a flight controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.

[0075] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0076] In some embodiments, the processor 210 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0077] The charging management module 240 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 may receive charging input from a wired charger through the USB interface 230. In some wireless charging embodiments, the charging management module 240 may receive wireless charging input through a wireless charging coil of the first device. While the charging management module 240 is charging the battery 242, it may also power the first device through the power management module 241.

[0078] The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the display screen 294, the camera component 293, and the wireless communication module 260. The power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 241 can also be set in the processor 210. In other embodiments, the power management module 241 and the charging management module 240 can also be set in the same device.

[0079] The wireless communication function of the first device can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor and baseband processor.

[0080] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0081] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied on the first device. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 250 can be set in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 can be set in the same device as at least some of the modules of the processor 210.

[0082] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through a display screen 294. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 210 and be set in the same device as the mobile communication module 250 or other functional modules.

[0083] The wireless communication module 260 can provide wireless communication solutions including wireless local area networks (WLAN) (such as WiFi networks), Bluetooth BT, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied on the first device. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 210. The wireless communication module 260 can also receive the signal to be sent from the processor 210, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0084] In some embodiments, the antenna 1 of the first device is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, so that the first device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0085] The first device implements the display function through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs that execute program instructions to generate or change display information.

[0086] The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the first device may include 1 or N display screens 294, where N is a positive integer greater than 1.

[0087] The first device can realize the shooting function through ISP, camera component 293, video codec, GPU, display screen 294 and application processor.

[0088] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the first device. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music and videos are stored in the external memory card.

[0089] The internal memory 221 can be used to store computer executable program codes, which include instructions. The internal memory 221 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the first device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 210 executes various functional applications and data processing of the first device by running instructions stored in the internal memory 221 and / or instructions stored in a memory provided in the processor.

[0090] The first device can implement audio functions through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C and the application processor, such as music playback, recording, etc. For the specific working principles and functions of the audio module 270, the speaker 270A, the receiver 270B and the microphone 270C, reference can be made to the introduction in the conventional technology.

[0091] The key 290 includes a power key, a volume key, etc. The key 290 may be a mechanical key or a touch key. The first device may receive key input and generate key signal input related to user settings and function control of the first device.

[0092] Motor 291 can generate vibration prompts. Motor 291 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 294, motor 291 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0093] Indicator 292 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0094] The SIM card interface 295 is used to connect a SIM card. The SIM card can be contacted and separated from the first device by inserting it into the SIM card interface 295 or pulling it out from the SIM card interface 295. The first device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 295 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 295 can also be compatible with different types of SIM cards. The SIM card interface 295 can also be compatible with external memory cards. The first device interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the first device uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the first device and cannot be separated from the first device.

[0095] It should be noted that Figure 2 The hardware modules included in the first device are only described for example, and do not limit the specific structure of the first device. For example, the first device may also include other functional modules.

[0096] As an example, Figure 3Taking the second device being a laptop as an example, a schematic diagram of the hardware structure of the second device is shown. Figure 3 As shown, the laptop computer may include: a processor 310, an external memory interface 320, an internal memory 321, a USB interface 330, a power management module 340, an antenna, a wireless communication module 360, an audio module 370, a speaker 370A, a microphone 370C, a speaker interface 370B, a mouse 380, a keyboard 390, an indicator 391, a camera 393, and a display screen 392, etc.

[0097] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the laptop computer. In other embodiments, the laptop computer may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0098] The processor 310 may include one or more processing units, for example, the processor 310 may include an application processor AP, a modem processor, a graphics processor GPU, an ISP, a controller, a memory, a video codec, a DSP, a baseband processor, and / or an NPU, etc. Different processing units may be independent devices or integrated into one or more processors.

[0099] The controller can be the nerve center and command center of the laptop computer. The controller can complete the fetching of instructions according to the instructions, generate operation control signals, and then execute the control of the instructions.

[0100] A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may store instructions or data that the processor 310 has just used or circulated. If the processor 310 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, and the waiting time of the processor 310 is reduced, thereby improving the efficiency of the system. In some embodiments, the processor 310 may include one or more interfaces. The interface may include an integrated circuit I2C interface, an integrated circuit built-in audio I2S interface, a PCM interface, a UART interface, a MIPI, a GPIO interface, and / or a USB interface, etc.

[0101] It is understandable that the interface connection relationship between the modules shown in this embodiment is only a schematic illustration and does not constitute a structural limitation on the notebook computer. In other embodiments, the notebook computer may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0102] The power management module 340 is used to connect to a power source. The charging management module 340 can also be connected to the processor 310, the internal memory 321, the display screen 394, the camera 393, and the wireless communication module 360. The power management module 341 receives input of a power source and supplies power to the processor 310, the internal memory 321, the display screen 394, the camera 393, and the wireless communication module 360. In some embodiments, the power management module 341 can also be set in the processor 310.

[0103] The wireless communication function of the notebook computer can be realized through the antenna and the wireless communication module 360. Among them, the wireless communication module 360 ​​can provide wireless communication solutions including wireless local area network WLAN (such as WiFi network), Bluetooth BT, global navigation satellite system GNSS, frequency modulation FM, short-range wireless communication technology NFC, infrared technology IR, etc. applied to the notebook computer.

[0104] The wireless communication module 360 ​​may be one or more devices integrating at least one communication processing module. The wireless communication module 360 ​​receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 310. The wireless communication module 360 ​​may also receive a signal to be sent from the processor 310, modulate the frequency of the signal, amplify the signal, and convert it into an electromagnetic wave for radiation through the antenna 2. In some embodiments, the antenna of the laptop is coupled to the wireless communication module 360, so that the laptop can communicate with the network and other devices through wireless communication technology.

[0105] The laptop computer realizes display functions through a GPU, a display screen 392, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 392 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 may include one or more GPUs, which execute program instructions to generate or change display information. The display screen 392 is used to display images, videos, etc. The display screen 392 includes a display panel.

[0106] The laptop computer can realize the shooting function through ISP, camera 393, video codec, GPU, display screen 392 and application processor, etc. ISP is used to process the data fed back by camera 393. In some embodiments, ISP can be set in camera 393.

[0107] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals. For example, when a laptop selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy. Video codecs are used to compress or decompress digital videos. Laptops can support one or more video codecs. In this way, laptops can play or record videos in multiple coding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0108] The external memory interface 320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the notebook computer. The external memory card communicates with the processor 310 through the external memory interface 320 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.

[0109] The internal memory 321 can be used to store computer executable program codes, which include instructions. The processor 310 executes various functional applications and data processing of the notebook computer by running the instructions stored in the internal memory 321. For example, in an embodiment of the present application, the processor 310 can execute the instructions stored in the internal memory 321, and the internal memory 321 can include a program storage area and a data storage area.

[0110] The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the notebook computer (such as audio data, a phone book, etc.), etc. In addition, the internal memory 321 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0111] The notebook computer can implement audio functions such as music playing and recording through the audio module 370, the speaker 370A, the microphone 370C, the speaker interface 370B, and the application processor.

[0112] The indicator 391 may be an indicator light, which may be used to indicate that the laptop computer is in a powered-on state or a powered-off state, etc. For example, if the indicator light is off, it may indicate that the laptop computer is in a powered-off state; if the indicator light is on, it may indicate that the laptop computer is in a powered-on state.

[0113] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the notebook computer. Figure 3 More or fewer components shown in the drawings may be combined with two or more components, or may have different component configurations. For example, the laptop computer may also include components such as a speaker. Figure 3 The various components shown in the drawings may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits.

[0114] The following embodiments of the present application only take the information transmission between the first device and the second device in accordance with the wireless transmission protocol as an example.

[0115] An embodiment of the present application provides an application interface display method in a multi-window screen projection scenario, which is used to provide a technical solution for projecting the interface of one or more applications running on a first device to a display screen of a second device in an adapted state (such as horizontal screen display or vertical screen display) and adapted size, so as to enhance the user's screen projection experience.

[0116] Among them, horizontal screen display means that the aspect ratio of the application window (i.e., the ratio of width to height) is greater than 1, such as 16:9, 18:9, 20:9 or 16:10, etc. Among them, the height of the application window can also be understood as the vertical length of the application window, the width of the application window can also be understood as the horizontal length of the application window, and the aspect ratio of the application window can also be understood as the aspect ratio of the application window (i.e., the ratio of the horizontal length to the vertical length). Vertical screen display means that the aspect ratio of the application window is less than 1, such as 9:16, 9:18, 9:20 or 10:16, etc.

[0117] It should be noted that the present application does not limit the number of applications launched in the form of free floating windows on the first device and the specific applications.

[0118] Exemplarily, the software system of the first device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. For example, in the present application, the operating system of the electronic device (including the first device and the second device) may include but is not limited to Symbian (Symbian), Android (Android), ,apple (iOS), BlackBerry (Blackberry), Hongmeng (Harmony) and other operating systems, this application is not limited.

[0119] Please refer to Figure 4 , Figure 4 Taking the Android system including a layered architecture as an example, a schematic diagram of the application display process in a multi-window projection scenario provided by an embodiment of the present application is shown. Figure 4As shown, the layered architecture of the Android system may include an application layer, an application framework layer, a system library, an Android runtime, and a kernel layer.

[0120] The application layer may include a series of application packages, such as camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, short message and other applications. For the convenience of description, the application is referred to as application below. The application on the first device may be a native application (such as an application installed in the first device when the operating system is installed before the first device leaves the factory), or a third-party application (such as an application downloaded and installed by the user through an application store), which is not limited in the embodiments of the present application.

[0121] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. Figure 4 As shown, the application framework layer may include a window manager service (WMS), an activity manager service (AMS), an input event management service (IMS) and a screen projection management module. In some embodiments, the application framework layer may also include a content provider, a view system, a phone manager, a resource manager, a notification manager, etc. ( Figure 4 not shown).

[0122] Among them, WMS carries data and attributes related to the "interface" and is used to manage the status related to the "interface", such as managing window programs and event dispatching. Among them, managing window programs means outputting to the physical screen or other display devices in an orderly manner with the assistance of the application server and WMS according to the display request of the application. Event dispatching means dispatching user events from the keyboard, physical buttons, touch screen, mouse, trackball (TraceBoll), etc. to the corresponding controls or windows. The window management service can also obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0123] AMS is responsible for managing Activities, starting, switching, and scheduling various components in the system, and managing and scheduling applications. Specifically, AMS defines data classes for saving processes, activities, and tasks. Among them, the data class corresponding to the process can include process file information, process memory status information, and the Activities and Services contained in the process. Activity information can be saved in ActivityStack. Among them, ActivityStack is used to uniformly schedule application Activities. ActivityStack can specifically save information about all running Activities (i.e., final ArrayList mHistory), such as interface configuration information. For example, the running Activity can be saved in the new ArrayList. ActivityStack can also save information about historically run Activities, such as interface configuration information. It should be noted that Activity does not correspond to an application, but ActivityThread corresponds to an application. Therefore, Android allows multiple applications to run at the same time, which actually allows multiple ActivityThreads to run at the same time.

[0124] In Android, the basic idea of ​​Activity scheduling is this: each application process reports to AMS when starting a new Activity or stopping the current Activity. AMS keeps records for all application processes internally. When AMS receives a start or stop report, it first updates the internal record and then notifies the corresponding client process to run or stop the specified Activity. Since AMS has records of all Activities internally, it can schedule these Activities and automatically close background Activities based on the status of the Activities and system memory.

[0125] IMS can be used to translate and encapsulate the original input events to obtain input events containing more information and send them to WMS, which stores the clickable area of ​​each application (such as controls), the location information of the focus window, etc. Therefore, WMS can correctly distribute input events to the specified control or focus window.

[0126] Content providers are used to store and retrieve data and make it accessible to applications. The data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0127] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0128] The phone manager is used to provide the communication function of the first device, such as the management of the call status (including connecting, hanging up, etc.).

[0129] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0130] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0131] The screen projection management module is responsible for managing matters related to screen projection. For example, the video stream corresponding to the transmission application interface, interface configuration parameters, etc. For another example, receiving and distributing screen rotation requests from the screen projection device (such as the second device), etc. Exemplarily, the screen projection management module may be Huawei's Assistant or Manager, etc. For example, the Assistant may be a module for interacting with other electronic devices (such as the second device) to exchange information related to screen projection. For example, the Assistant may provide an API and programming framework for the first device to communicate with other electronic devices (such as the second device). Exemplarily, when the screen projection device is a computer, the Manager may be a computer manager, a computer assistant, etc. In some possible embodiments, the screen projection management module can not only project programs running on the local machine to other devices, but also receive and parse video streams and related information sent by other devices, thereby displaying applications running on other devices on the local machine. In some possible embodiments, the screen projection management module is cut and can only implement one function in the above embodiments, thereby meeting the needs of different device forms for screen projection functions.

[0132] The system library and Android runtime contain the functions that the application framework layer needs to call, the Android core library, and the Android virtual machine. The system library can include multiple functional modules. For example: browser kernel, three-dimensional (3D) graphics, font library, etc.

[0133] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0134] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0135] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0136] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc.

[0137] A 2D graphics engine is a drawing engine for 2D drawings.

[0138] The kernel layer is the layer between hardware and software. The kernel layer can include display drivers, input / output device drivers (for example, keyboards, touch screens, headphones, speakers, microphones, etc.), device nodes, camera drivers, audio drivers, and sensor drivers. Users perform input operations through input devices, and the kernel layer can generate corresponding raw input events based on the input operations and store them in device nodes.

[0139] In this application, the IMS can respond to the received input events. Figure 4 As shown, the input / output device driver can detect the user's input event. For example, when the user starts the application, the input / output device driver reports the user's input event to the IMS, the IMS forwards the input event to the WMS, the WMS distributes it to the corresponding application, the application sends a registration request to the AMS, and the application starts.

[0140] In the embodiment of the present application, during the screen projection process from the first device to the second device, if the second device receives a screen rotation request from the user to the application, such as the user clicking a button for initiating horizontal or vertical screen display, the user voice instructing an instruction to initiate horizontal or vertical screen display, or the user performing a preset pressing operation on the hardware device of the first device for instructing to initiate horizontal or vertical screen display, etc., the second device indicates the screen rotation request to the corresponding application through the communication connection between the first device and the first device. Then, the application sends a screen rotation request to the WMS.

[0141] After AMS intercepts (e.g., hooks) the screen rotation request of the application, it can determine whether the application can support window adjustment (resize). If the application can support resizing, AMS redetermines the display size of the application interface according to the screen rotation request of the application. Among them, interception refers to intercepting and monitoring the transmission of events before the events are transmitted to the end point. For example, through technologies such as hooking, the event can be hooked like a hook before the event is transmitted to the end point, and the event can be processed in time to respond to the event in time. In an embodiment of the present application, AMS can respond to the screen rotation request as soon as possible after intercepting the screen rotation request of the application.

[0142] Then, AMS recalculates the configuration parameters of the application interface according to the re-determined display size of the application interface. Among them, the configuration parameters of the application interface may include but are not limited to the controls displayed on the application interface (icons, text, etc., and the specific display position and / or size of each icon, text, etc.). Regarding the configuration parameters of the application interface, specific reference may be made to conventional technologies, which are not limited in this application. Finally, AMS updates the application interface configuration parameters in the activity thread (ActivityThread) according to the recalculated configuration parameters of the application interface. In addition, AMS synchronizes the display size of the re-determined application interface to the projection management module (such as Assistant or Manager) of the second device through the projection management module (such as Assistant or Manager) of the first device, so that the second device displays the application interface on the display screen according to the display size of the application interface. In some embodiments, the first device can also send information such as the coordinates of the application interface, the boundary size of the application interface, the relative position between the application interfaces, and the properties of the application to the second device through the projection management module.

[0143] In some embodiments, Figure 4 As shown, after AMS recalculates the configuration parameters of the application interface, AMS can also call the WMS interface according to the determined display size of the application interface and the configuration parameters of the application interface, so that WMS draws the window corresponding to the Activity according to the configuration parameters of the display size. It can be understood that the window (application) corresponding to the Activity may include multiple Activities, and AMS and WMS will also adjust other Activities besides the above Activity according to the above method.

[0144] For example, after WMS obtains the display size and configuration parameters of the application interface, it can determine whether there is an Activity window matching the above display size and configuration parameters in the background. If so, WMS sets the Activity window matching the above display size and configuration parameters to be visible. If not, WMS creates a new Activity window according to the above display size and configuration parameters and draws the window content, and calls the display driver to display the drawn window content, thereby presenting the interface to the user.

[0145] It should be noted that Figure 4 Taking the layered architecture Android system as an example, the application interface display process in a multi-window projection scenario is introduced. This application does not limit the specific architecture of the first device software system. For the specific introduction of software systems of other architectures, reference can be made to conventional technologies.

[0146] Usually, according to different screen projection requirements, the screen projection methods can include same-source screen projection and different-source screen projection.

[0147] Among them, same-source screen projection refers to projecting the interface of one or more screen projection applications launched on the first device to the second device in the form of an extended screen. In the same-source screen projection mode, the first device uses one-way encoding to send the screen projection application interface rendered on the virtual screen and the video stream corresponding to the default interface to the second device, so as to display the default interface and the interface of one or more screen projection applications launched on the first device in the form of a free floating window on the display screen of the second device. Among them, the default interface can be understood as the interface sent by the first device.

[0148] Assuming that the first device displays application interface A, in response to the user's operation, it starts application B and application C in the form of free floating windows, then the first device will render application interface A, application interface B and application interface C together on the main screen (main display) and virtual screen of the first device. Among them, application interface A is rendered on the main screen, and application interface B and application interface C are rendered on the virtual screen. Please refer to Figure 5 , Figure 5 A schematic diagram of homologous screen projection is shown. Figure 5 As shown in the figure, taking the default interface as application interface A as an example, when the first device projects the screen to the second device in the same source projection mode, the first device sends the projection application interface on the virtual screen and the standard video stream corresponding to the default interface (i.e. application interface A) to the second device through one-way encoding, and displays the default interface (i.e. application interface A). Figure 5 The application interface A (i.e., the default interface) shown in the figure, the display screen of the second device displays Figure 5 The application interface A (ie, the default interface), application interface B, and application interface C are shown.

[0149] In the heterogeneous screen projection mode, the first device uses two-way encoding, one of which sends the default interface to the display (i.e., displayed on the first device display). The other encoding sends the standard video stream corresponding to the screen projection application interface rendered on the virtual screen to the second device.

[0150] Assuming that the first device displays application interface A, in response to the user's operation, it starts application B and application C in the form of free floating windows, then the first device will render application interface A, application interface B and application interface C together on the main screen and virtual screen of the first device. Among them, application interface A is rendered on the main screen, and application interface B and application interface C are rendered on the virtual screen. Please refer to Figure 6 , Figure 6 A schematic diagram of heterogeneous screen projection is shown. Figure 6 As shown in the figure, taking the default interface as application interface A as an example, when the first device projects the screen to the second device in a heterogeneous screen projection mode, the first device sends the video stream corresponding to the default interface (i.e., application interface A) to the display screen of the first device through one encoding, and sends the video streams corresponding to application interface B and application interface C to the second device through another encoding. Among them, the display screen of the first device shows Figure 6 The application interface A (i.e., the default interface) shown in the first device is displayed on the display screen. Figure 6 Application interface B and application interface C are shown.

[0151] It is understandable that the same-source screen projection method and the different-source screen projection method have their own advantages and disadvantages. For example, the same-source screen projection method can ensure the continuity of the application; while the different-source screen projection method requires restarting the application when switching between different screens. Figure 6 In the example shown, if you need to process application interface B or application interface C on the first device, you need to switch the interface of application B or application C back to the first device. Specifically, the display switching needs to be completed. During the display switching process, the application will inevitably restart. However, the heterogeneous screen projection method has better isolation. For example, the heterogeneous screen projection method can provide users with independent control screens (i.e., the display screen of the first device and the display screen of the second device) to process different interfaces.

[0152] It should be noted that the application interface display method in a multi-window projection scenario provided by the present application is applicable to both the same-source projection mode and the different-source projection mode. That is, whether it is the same-source projection mode or the different-source projection mode, the first device can use the method provided in the embodiment of the present application to project the interface of one or more applications started in the form of free floating windows on the first device to the second device in an adapted state (such as horizontal screen display or vertical screen display) and an adapted size.

[0153] like Figure 7 As shown, an application interface display method in a multi-window projection scenario provided by an embodiment of the present application may include the following steps S701-S705:

[0154] S701: A first device receives a screen rotation request from a user, wherein the screen rotation request is used to initiate a horizontal or vertical screen switching of a window of a first application.

[0155] Among them, the first device receives the screen rotation request from the screen projection device (ie, the second device).

[0156] In some embodiments, the screen rotation request is determined by the second device and sent to the first device based on a first operation of the user on the second device. The first operation is a screen rotation operation of the user on the second device for a window of a first application in one or more application interfaces projected from the first device to the second device.

[0157] Among them, the first application is any application that is projected from the first device to the second device. It should be noted that if the first device is projected to the second device using the same source projection method, the user's screen rotation request for the default interface is used to initiate the synchronous horizontal and vertical screen switching of the first application window displayed on the first device and the second device. The user's screen rotation request for the non-default interface can only be used to initiate the horizontal and vertical screen switching of the first application window displayed on the second device.

[0158] In other embodiments, the screen rotation request is determined by the first device based on a second operation of the user on the first device. The second operation is a screen rotation operation of the user on the default interface window displayed on the first device. It should be noted that if the first device uses a same-source screen projection method to project the screen to a laptop computer, the user's screen rotation request is used to initiate a synchronous horizontal and vertical screen switching of the window of the first application displayed on the first device and the second device. If the first device uses a different-source screen projection method to project the screen to the second device, since the default interface window is not displayed on the second device during different-source screen projection, the user's screen rotation request can only be used to initiate a horizontal and vertical screen switching of the window of the first application displayed on the first device.

[0159] The horizontal and vertical screen switching of the window may include but is not limited to switching the window from vertical screen display to horizontal screen display, or from horizontal screen display to vertical screen display. As shown above, horizontal screen display means that the aspect ratio (i.e., the ratio of width to height) of the application window is greater than 1, and vertical screen display means that the aspect ratio of the application window is less than 1.

[0160] In the present application, the first operation and the second operation may include but are not limited to rotating the screen, clicking a virtual button, preset touch gestures, preset operations on actual hardware (such as pressing the power button and the "+" volume button of a mobile phone at the same time) or voice commands, etc., depending on the input device driver supported by the second device, and the embodiments of the present application are not limited.

[0161] For example, suppose that a mobile phone (i.e., the first device) uses the same-source screen projection method to project the default interface, the first application interface, and the second application interface to a laptop computer (i.e., the second device). Among them, the default interface is the mobile phone desktop, the first application interface is the video application interface, and the second application interface is the short message application interface. Assume that the first application is a video application, such as Figure 8 As shown in (a) of FIG. 8 , the first operation of the user is an operation 801 in which the user clicks a virtual button for initiating screen transfer displayed on the video application interface of the laptop computer. Or, Figure 8 As shown in (b) of FIG. 8 , the first operation of the user is the operation 802 of initiating a screen rotation instruction by the user's voice instruction. The current active interface refers to the interface that the user has manipulated most recently.

[0162] For another example, suppose that a mobile phone (i.e., the first device) uses the same-source screen projection method to project the mobile phone desktop, short message application interface, and video application interface to a tablet computer (i.e., the second device), and the first application is a video application. Figure 8 As shown in (c) in FIG. 1 , the first operation of the user is to rotate the tablet screen from the portrait mode to the landscape mode (eg, Figure 8 (rotated 90° counterclockwise as shown in (c)).

[0163] Among them, for Figure 8 The first operation shown in (b) is an operation in which the user voice instructs to initiate a screen rotation instruction, or Figure 8 The first operation shown in (c) is an operation of the user rotating the screen, and the first operation is for the current active window (i.e., the focus window). For example, when the current active window (i.e., the focus window) is a video application window, the first operation user initiates a screen rotation request for the video application.

[0164] It should be noted that Figure 8 The following example shows that there are three screens (mobile phone desktop, video application interface and short message application interface) on the second device, and the first application is a video application. This application does not limit the number of application interfaces on the second device and the relative position of each interface on the display screen of the second device. In addition, this application does not limit the specific form of the first operation. For example, the first operation can also be other single-click, double-click, long-press, re-press, floating gesture operations, etc.

[0165] Similarly, the second operation can also be a similar operation of the user on the first device. Figure 8 The click shown in (a) is used to initiate the operation of the virtual button for rotating the screen, similar to Figure 8 The voice instruction shown in (b) of the operation of initiating the screen rotation instruction or similar Figure 8Alternatively, the second operation may also be other single-click, double-click, long-press, heavy-press, floating gesture operations, etc., which are not limited in this application.

[0166] If the screen rotation request is determined by the second device according to the user's first operation on the second device and sent to the first device, then specifically, after receiving the user's first operation for initiating the first application screen rotation request, the input / output device driver or sensor driver of the second device will send the screen rotation request to the first device through the communication connection with the first device. For example, if the first device is a mobile phone, the second device is a laptop computer, and the operating systems of the mobile phone and the laptop computer are the Android system with a layered architecture, the laptop computer can send the screen rotation request to the screen rotation management module (such as Assistant or Manager) of the mobile phone through the screen projection management module (such as Assistant or Manager), and the screen projection management module of the mobile phone distributes the screen rotation request to the corresponding application (i.e., the first application). After intercepting (such as hooking) the screen rotation request from the first application, the AMS responds to the screen rotation request. That is, the mobile phone continues to execute the following steps S702-S705.

[0167] If the screen rotation request is determined by the first device according to the second operation of the user on the first device, then specifically, after receiving the second operation of the user for initiating the screen rotation request of the first application, the input / output device driver or sensor driver of the first device reports the user's input event to IMS. IMS distributes the input event to the corresponding application (i.e., the first application) through WMS. After intercepting (such as hooking) the screen rotation request from the first application, AMS responds to the screen rotation request. That is, the first device continues to execute the following steps S702-S705.

[0168] S702: The first device determines whether the first application supports window resizing.

[0169] Specifically, for applications that support resizing, the first device continues to execute step S703. For applications that do not support resizing, the first device exits the response process to the screen rotation request. Resizing may include but is not limited to window shape adjustment and / or window size adjustment.

[0170] Generally, whether an application supports resizing can be determined by obtaining application development properties and / or application data configuration. If the application supports resizing, it means that the application window can accept adjustments, including window shape adjustment and window size adjustment. If the application supports resizing, it means that the application window cannot accept adjustments.

[0171] S703: The first device redetermines the window size of the first application according to the screen rotation request.

[0172] The window size may include but is not limited to the window shape and / or the window size.

[0173] As a possible embodiment, the screen rotation request is used to switch the window of the first application from vertical screen display to horizontal screen display, and the above step S703 may specifically include: the first device adjusts the window size of the first application according to the screen rotation request so that the window width of the first application is greater than the height. For example, the aspect ratio of the window of the first application is redetermined to 16:9, 18:9, 20:9 or 16:10, etc. For another example, the window range of the first application is redetermined from (0, 0, 1080, 2340) to (0, 0, 2340, 1080); wherein (0, 0) is the coordinate of the lower left corner, lower right corner, upper left corner or upper right corner of the window of the first application in the first device coordinate system, depending on the specific settings of the first device coordinate system; 2340 is the window width of the first application, and 1080 is the height of the window of the first application.

[0174] As another possible embodiment, the screen rotation request is used to switch the application window from horizontal screen display to vertical screen display, then the above step S703 may specifically include: the first device adjusts the window size of the first application according to the screen rotation request, so that the width of the window of the first application is smaller than the height. For example, the aspect ratio of the window of the first application is redetermined to 9:16, 9:18, 9:20 or 10:16, etc. For another example, the window range of the first application is redetermined from (0, 0, 2340, 1080) to (0, 0, 1080, 2340). Among them, (0, 0) is the coordinate of the lower left corner, lower right corner, upper left corner or upper right corner of the window of the first application in the first device coordinate system, depending on the specific settings of the first device coordinate system. 1080 is the width of the window of the first application, and 2340 is the height of the window of the first application.

[0175] The following is an example of the first device re-determining the window size of the first application according to the screen rotation request in combination with three possible situations:

[0176] Case 1: The first device redetermines the window size of the first application based on the application development attributes and / or application data configuration in response to the screen rotation request.

[0177] For example, assuming that the window of the first application is displayed in portrait mode and the window range of the first application is (0, 0, 1080, 2340), if the screen rotation request is used to switch the window of the first application from portrait mode to landscape mode, the application development attributes and / or application data configuration indicate that the first application supports resizing. More specifically, if the first application supports landscape mode, the first device can redefine the window size of the first application to (0, 0, 2340, 1080).

[0178] For another example, assuming that the window of the first application is displayed in landscape mode and the window range of the first application is (0, 0, 2340, 1080), if the screen rotation request is used to switch the window of the first application from landscape mode to portrait mode, the application development attributes and / or application data configuration indicate that the first application supports resizing. More specifically, if the first application supports portrait mode, the first device can redefine the window size of the first application to (0, 0, 1080, 2340).

[0179] Case 2: The first device redetermines the window size of the first application based on the screen rotation request, application development attributes and / or application data configuration, and the size of the display screen of the first device.

[0180] For example, assuming that the window of the first application is displayed in portrait mode, the window range of the first application is (0, 0, 1080, 2340), and the aspect ratio of the display screen of the first device is 16:9. If the screen rotation request is used to switch the window of the first application from portrait mode to landscape mode, the application development attributes and / or application data configuration indicate that the first application supports resizing. More specifically, if the first application supports landscape mode, the first device can redefine the window size of the first application to (0, 0, 2340, 1316).

[0181] For another example, assuming that the window of the first application is displayed in landscape mode, the window range of the first application is (0, 0, 2340, 1080), and the aspect ratio of the display screen of the first device is 16:9. If the screen rotation request is used to switch the window of the first application from landscape mode to portrait mode, the application development attributes and / or application data configuration indicate that the first application supports resizing. More specifically, if the first application supports portrait mode, the first device can redefine the window size of the first application to (0, 0, 1080, 1920).

[0182] Case 3: The first device redetermines the window size of the first application based on the screen rotation request, application development attributes and / or application data configuration, and the display screen size of the projection device (i.e., the second device).

[0183] For example, assuming that the window of the first application is displayed in portrait mode, the window range of the first application is (0, 0, 1080, 2340), and the aspect ratio of the display of the second device is 3:2. If the screen rotation request is used to switch the window of the first application from portrait mode to landscape mode, the application development attributes and / or application data configuration indicate that the first application supports resizing. More specifically, if the first application supports landscape mode, the first device can redefine the window size of the first application to (0, 0, 2340, 1560).

[0184] For another example, assuming that the window of the first application is displayed in landscape mode, the window range of the first application is (0, 0, 2340, 1080), and the aspect ratio of the display screen of the second device is 3:2. If the screen rotation request is used to switch the window of the first application from landscape mode to portrait mode, the application development attributes and / or application data configuration indicate that the first application supports resizing. More specifically, if the first application supports portrait mode, the first device can redefine the window size of the first application to (0, 0, 1080, 1620).

[0185] S704: The first device updates the interface configuration parameters of the first application according to the re-determined window size of the first application.

[0186] The interface configuration parameters of the application may include, but are not limited to, the boundary information of the application window after resizing, the orientation of the application, the icons and texts displayed on the application interface, and the specific display position, size and color of each icon and text. The orientation of the application includes horizontal screen display or vertical screen display. Regarding the interface configuration parameters of the application, specific reference may be made to conventional technologies, which are not limited in this application.

[0187] In the present application, the interface configuration parameters of the first application obtained by the first device are adapted to the re-determined window size of the first application. It is understandable that since the first device is about to adjust the window size of the first application, the previous interface configuration parameters are obviously not suitable for the adjusted window size. If the interface configuration parameters of the first application are not recalculated, the display of icons and / or text on the interface of the first application will be affected, such as some content overlapping and some content not being fully displayed. To solve the above problems, the first device needs to re-acquire the interface configuration parameters of the first application after re-determining the window size of the first application.

[0188] In some embodiments, the first device may update the boundary information of the first application after resizing in the interface configuration parameters of the first application based on the re-determined window size of the first application. Further, in some embodiments, the first device may update the application's direction in the interface configuration parameters of the first application based on the boundary information after resizing. Further, in some embodiments, the first device may update other configuration parameters in the interface configuration parameters of the first application, such as icons, texts, etc. displayed on the application interface, and the specific display position, size, and color of each icon, text, etc., based on the boundary information after resizing of the first application and the updated application's direction. The specific method and process of step S704 (i.e., the first device updates the interface configuration parameters of the first application based on the re-determined window size of the first application) will be described below. Fig. 9 This is elaborated in the introduction and description.

[0189] S705: The first device sends first information to the second device, so that the second device can display the interface of the first application according to the first information. The first information includes the updated interface configuration parameters of the first application.

[0190] In the present application, a communication connection is established between a first device (such as a mobile phone) and a second device (such as a laptop). For example, the communication connection may be a wired connection (such as a data transmission line connection, etc.) or a wireless connection (such as a Bluetooth connection, a WiFi connection, or a WiFi P2P connection, etc.). The first device may send first information to the second device through the communication connection with the second device, so that the second device displays an application interface according to the first information.

[0191] For example, the first device (such as a mobile phone) can Figure 4 The screen projection management module (such as Assistant or Manager) shown sends first information to the screen projection management module (such as Assistant or Manager) of the second device (such as a laptop computer), so that the laptop computer displays the interface of the first application according to the first information.

[0192] In some embodiments, Fig. 9 As shown, the above step S704 (ie, the first device updates the interface configuration parameters of the first application according to the re-determined window size of the first application) may specifically include the following steps:

[0193] S901. The first device determines a clone application and a non-clone application.

[0194] Among them, the clone application refers to the application that is projected to the second device. Figure 5 The first interface, the first application interface and the second application interface shown. Figure 6 The first application interface and the second application interface shown. Non-clone applications refer to applications that are only displayed on the display screen of the first device and are not projected to the second device (such as applications corresponding to the default interface in the heterogeneous projection mode). Figure 6 The first interface is shown.

[0195] In some embodiments, the above-mentioned clone application can also be referred to as a "target application", that is, an application that is projected to a target device (i.e., a second device). Non-clone applications can also be referred to as "non-target applications". This application does not limit specific names and names. The following embodiments are specifically introduced using clone applications and non-clone applications as examples.

[0196] For a clone application, the first device executes step S902-1, and then executes steps S903-S905; for a non-clone application, the first device executes step S902-2.

[0197] S902-1. The first device updates the interface configuration parameters of the first application, including boundary information of the first application after resizing.

[0198] Among them, the interface configuration parameters of the first application may include but are not limited to the boundary information of the application window of the first application after resizing (hereinafter referred to as the boundary information of the first application after resizing), the direction of the application, the icons and texts displayed on the application interface, and the specific display position, size and color of each icon, text, etc. After updating the boundary information of the first application after resizing, the first device may further update other configuration parameters in the interface configuration parameters of the first application according to the boundary information after resizing, such as the direction of the application, the icons and texts displayed on the application interface, and the specific display position, size and color of each icon, text, etc.

[0199] For example, the first device may update the boundary information of the first application after resizing according to the re-determined window size of the first application.

[0200] Specifically, the first device can obtain the activity record running at the top of the current ActivityStack, obtain the configuration parameters of the first application process (for example, through WindowProcessController), and then update the boundary information in the interface configuration parameters of the first application process based on the re-determined window size of the first application.

[0201] S902-2. The first device re-registers the non-clone application process to the default configuration.

[0202] In the embodiment of the present application, if the application process is registered to the default configuration, when the display screen of the first device (such as a mobile phone) rotates, in response to the display screen rotation event, the interface configuration parameters of the application will be updated to the active thread and then displayed. In other words, the non-clone application will still switch the interface display of the application on the display screen of the first device (such as a mobile phone) as the display screen rotation event is received by the first device (such as a mobile phone).

[0203] S903: The first device updates other interface configuration parameters of the first application according to the updated boundary information of the resized first application.

[0204] In some embodiments, the principle for the first device to update the rotation direction of the application in the interface configuration parameters of the first application is: if the first device determines that the width of the window of the first application is greater than the height based on the boundary information after the first application is resized, the first device updates the rotation direction of the application in the interface configuration parameters of the first application to horizontal screen display; if the first device determines that the height of the window of the first application is greater than the width based on the boundary information after the first application is resized, the first device updates the rotation direction of the application in the interface configuration parameters of the first application to vertical screen display.

[0205] Furthermore, after the first device updates the application rotation in the interface configuration parameters of the first application, the first device can obtain other configuration parameters such as the icons, texts, and specific display positions, sizes, colors, etc. of each icon, text, etc. displayed on the application interface in the interface configuration parameters of the first application based on the boundary information after the first application is resized and the application rotation.

[0206] S904: The first device removes the first application process from screen configuration monitoring.

[0207] Among them, removing the application process from the screen configuration monitoring is used to prevent the application from responding to the rotation event of the display screen. Therefore, after the first device removes the first application process from the screen configuration monitoring, the first application will not respond to the display screen rotation event of the first device. In other words, no matter how the display screen of the first device is rotated, whether it is in a horizontal or vertical state, the clone application is displayed with the configuration parameters updated in step S903.

[0208] S905. The first device refreshes the updated interface configuration parameters of the first application into the first application process.

[0209] Taking the Android system with a layered architecture as an example, the AMS of the first device may refresh the acquired interface configuration parameters of the first application to the activity thread (ActivityThread).

[0210] It should be noted that in the multi-window screen projection process provided by the present application, the first device can receive the user's operation of switching the non-clone application to the clone application during the screen projection process, and refresh the interface configuration parameters of the first application again. For example, upon receiving the user's operation of clicking a virtual button displayed on the non-clone application interface to initiate the switch from the non-clone application to the clone application, a preset touch gesture, a preset operation on the actual hardware, or a voice command, the interface configuration parameters of the first application are refreshed again. For example, the mode of the first application in the configuration parameters is switched to full-screen mode, and the window size of the first application is switched to adapt to the first device. The present application does not limit the specific operation of the user to initiate the switch from the non-clone application to the clone application.

[0211] In the application interface display method in the multi-window screen projection scenario provided in the embodiment of the present application, when the first device initiates a screen rotation request for switching the window between horizontal and vertical screens for the application, it determines the window size corresponding to the application interface, the rotation direction of the application, the icons and texts displayed on the application interface, the specific display position, size and color of each icon, text, etc., and other configuration parameters according to the specific screen rotation request, and further refreshes the determined configuration parameters to the first application process and synchronizes them to the projection device. This enables the application to be projected onto the display screen of the second device in an adapted state (such as horizontal or vertical display) and at an adapted size, thereby improving the user's screen projection experience.

[0212] For example, for Figure 8 (a) or Figure 8 In the case where the first application shown in (b) is a video application, if the same-source screen projection method in the conventional method is used, then in response to receiving a screen rotation request (a request for initiating a switch of the video application window from portrait to landscape display), the mobile phone re-determines that the window width corresponding to the video application interface is greater than the height. However, since the current state of the mobile phone is portrait, the application process of the video application is configured by default. Therefore, the mobile phone can only project the screen to the second device (such as a laptop) in portrait display state according to the default configuration. Assuming that the first operation is Figure 8 In operation 801 shown in (a), the user clicks a virtual button displayed on the video application interface for initiating screen rotation. If a conventional heterogeneous screen projection method is used and only a resize operation is performed, the interface of the video application will be displayed abnormally, and the entire video screen will be compressed into a vertical display area of ​​the laptop computer display.

[0213] Using the application interface display method in the multi-window screen projection scenario provided by this application, it is assumed that the first device uses the same source screen projection method to project the screen to the second device. Fig.10 When the screen rotation request is determined by the first operation shown in operation 801 in the first device, after the resize operation, the first device refreshes the configuration parameters such as the rotation direction of the application, the icons, texts displayed on the application interface, the specific display position, size and color of each icon, text, etc. to the application process, and synchronizes them to the second device (such as a laptop computer), so that the video application interface can be projected to the display screen of the laptop computer in a horizontal screen state, such as Fig.10 As shown, the user's screen projection experience is improved.

[0214] Furthermore, as described above, since the first device can redetermine the window size of the first application based on the application development attributes and / or application data configuration according to the screen rotation request (i.e., situation 1); it can also redetermine the window size of the first application based on the application development attributes and / or application data configuration according to the screen rotation request, and the display screen size of the first device (i.e., situation 2); it can also redetermine the window size of the first application based on the application development attributes and / or application data configuration, and the display screen size of the projection device (i.e., the second device) according to the screen rotation request (i.e., situation 3), therefore, after determining whether the first application supports window adjustment (resize), the first device can further determine a specific method for redetermining the window size of the first application.

[0215] In some embodiments, Fig.10 The interface of the video application shown, compared to the vertical screen display, only exchanges and adjusts the width and height, and does not enlarge or reduce the width and height. In other embodiments, the video application can also display the video application in the form of full-screen display (enlarge the width and height), that is, the window of the video application will occupy the entire display area of ​​the display screen of the second device. In some embodiments, due to the different screen ratios of the first device (16:9) and the second device (4:3), the video source / file (4:3) that can be fully displayed on the first device will be stretched when displayed on the second device, or the place where the video cannot fill will be displayed black. Although the horizontal and vertical screen switching of the application can be achieved at this time, the user experience is still not good enough.

[0216] For example, Fig.11 As shown, in some embodiments, after the first device executes the above step S702, the application interface display method in the multi-window projection scenario provided by the embodiment of the present application may also include step S1101:

[0217] S1101. A first device determines an application category of a first application.

[0218] For example, the first device may determine the application category of the first application according to an application package name (eg, an Android application package (APK) name), an application development attribute, or an application data configuration.

[0219] Exemplarily, if the first application is a first type of application (such as a non-video application), the first device determines to redetermine the window size of the first application based on other conventional factors. For example, the specific method corresponding to the above situation 1 or situation 2 or other similar methods are used to redetermine the window size of the first application.

[0220] For example, the above Figure 7Step S703 shown can be replaced by Fig.11 Step S1102-1 shown:

[0221] S1102-1. The first device redetermines the window size of the first application based on the screen size of the first device in response to the screen rotation request.

[0222] For example, assuming the first device is a mobile phone and the second device is a laptop, refer to Fig.10 In response to receiving a screen rotation request (a request for initiating a video application window to switch from a vertical screen display to a horizontal screen display), the mobile phone determines that the corresponding application is a second type of application, and redefines the video application window based on the size of the laptop display. Based on this solution, the mobile phone determines the size of the video application window to be displayed in a horizontal screen and adapted to the size of the laptop display and projects the screen to the laptop.

[0223] For example, the above application Figure 1 , Figure 8 (a) and Figure 8 As shown in (b), the window sizes of the applications projected to the second device (i.e., the laptop computer) are all determined based on the display screen size of the first device (i.e., the mobile phone).

[0224] If the first application is a second type of application (such as a video application), the first device determines to redefine the window size of the first application based on the display screen size of the second device (such as a laptop). For example, the specific method corresponding to the above situation 3 or other similar methods are used to redefine the window size of the first application.

[0225] For example, the above Figure 7 Step S703 shown can be replaced by Fig.11 Step S1102-2 shown:

[0226] S1102-2. The first device redetermines the window size of the first application based on the screen size of the second device according to the screen rotation request.

[0227] For example, suppose the first device is a mobile phone and the second device is a laptop. The first device uses the same source screen projection method to project the screen to the second device. Fig.12 , when the first device receives a signal from the second device, according to Fig.10When the screen rotation request is determined by the first operation shown in operation 801 in the operation, and the mobile phone determines that the corresponding application is a second-category application, the video application window is redetermined based on the size of the laptop display. Based on this scheme, the mobile phone determines the size of the video application window to cover the entire display area of ​​the laptop. It should be noted that in the scheme of redetermining the window size of the first application based on the size of the laptop display, since the window of the first application is the focus window, the first application interface is displayed with a window size that is adapted to the size of the laptop display. The non-focus window is still displayed on the laptop display, but is blocked by the focus window. For example, Fig.12 The laptop computer shown in the figure has a video application window (i.e., a focus window) displayed in full screen, and the short message application window (i.e., a non-focus window) and the mobile phone desktop window are blocked by the video application window, so Fig.12 The short and medium message application windows and the mobile phone desktop window are invisible to the user.

[0228] In a solution for redetermining the window size of the first application based on the size of the laptop display screen, the laptop can respond to the user's operation of closing, minimizing or shrinking the video application window to make the short message application window and the mobile phone desktop window visible to the user, so that the user can switch the focus window as needed.

[0229] It can be understood that, usually, due to the different display screen ratios of the first device (such as a mobile phone) and the second device (such as a laptop), the proportion of the second type of application displayed in landscape or portrait on the first device (such as a mobile phone) will be unbalanced. For example, if the window size corresponding to the video application interface is re-determined based on the display screen size of the first device (such as a mobile phone), then when the video application is displayed in landscape mode on the display screen of the second device (such as a laptop), there is a problem of thick borders all around, and the visual display effect is not as good as the display effect of the same source interface of the projection device (such as a laptop). In the application interface display method in the multi-window projection scenario provided in the present application, by determining the application category, it can be resized based on the display screen size of the second device according to the actual characteristics and / or needs of the application, so as to improve the display effect of the application interface after projection and improve the user experience.

[0230] Taking the first application as a video application as an example, if the second device (such as a laptop) is not resized to account for the display screen size, thick borders (such as black borders) will usually appear on the left and right sides of the video application window projected on the laptop. Fig.11 In the method corresponding to step S1102-2, the video application specifically considers the display screen size of the second device (such as a laptop) when resizing. Fig.12As shown, the video application interface can be displayed in full screen on the second device (such as a laptop computer), which is more in line with the native video application interface on the laptop computer, just like the effect of directly opening the video on the second device (such as a laptop computer), and the user experience is good.

[0231] It should be noted that the above Fig.12 The screen projection effect shown is based on the example of the second category of applications being video applications, and the present application does not limit the specific second category of applications. For example, for a picture application interface, a method similar to that shown in step S1102-1 above can also be used to resize.

[0232] In addition, it should be noted that the video application in this application is not limited to video playback applications, but can also be an application that contains video content, such as news applications, social applications, etc. This application does not limit specific applications.

[0233] It should be noted that this application Figure 1 , Figure 8 (a) Figure 8 (b) Fig.10 and Fig.12 The following is an example of a laptop computer being the second device. Since the laptop computer has a feature that the window does not change with the rotation of the display screen, for the second device whose window does not change with the rotation of the display screen, the application window projected to the second device does not change with the rotation of the display screen of the second device.

[0234] For a second device whose window changes with the rotation of the display screen, such as a tablet, the application window after projection will change with the rotation of the display screen of the second device, for example, switching from landscape to portrait, or vice versa.

[0235] Please refer to Fig.13 , Fig.13 Taking the first device as a mobile phone and the second device as a tablet computer, the first device projects the mobile phone desktop, short message application interface and video application interface to the second device, and the first operation is to rotate the tablet computer from a portrait state to a landscape state as an example, an example diagram of the application interface display effect in another projection scenario provided in an embodiment of the present application is shown.

[0236] For example, suppose the first device uses the same source screen projection method to project the screen to the second device, where the default interface ( Fig.13 (not shown), the tablet displays a mobile phone desktop window, a video application window and a short message application window, wherein the video application window is the current active window (i.e., the focus window). Fig.13, when the first device (i.e., the mobile phone) receives an operation (e.g., an operation of rotating the tablet screen by a user) detected by a sensor driver (e.g., a gyroscope sensor, an acceleration sensor, etc.) from the second device (i.e., the tablet computer), Fig.13 When a screen rotation request is determined by an operation to rotate the tablet computer 90° counterclockwise), the tablet computer sends the screen rotation request corresponding to the screen rotation operation to the mobile phone through the communication connection between the tablet computer and the mobile phone. Taking the Android system, in which the operating systems of mobile phones and laptops are layered architectures, as an example, the tablet computer can send the screen rotation request to the screen projection management module (such as Assistant or Manager) of the mobile phone through the screen projection management module (such as Assistant or Manager), and the screen projection management module of the mobile phone distributes the screen rotation request to the corresponding application (i.e., the video application). After the AMS intercepts (such as hooks) the screen rotation request from the video application and determines that the application is a second-category application, it responds to the screen rotation request and re-determines the window size corresponding to the video application interface based on the size of the tablet computer display. Fig.13 As shown, the tablet computer displays the video application window in full screen, and simultaneously displays the short message application window and the mobile phone desktop window on the tablet computer (the short message application window and the mobile phone desktop window are blocked by the video application window, so Fig.13 The short and medium message application window and the mobile phone desktop window are invisible to the user).

[0237] in, Fig.13 In the example diagram shown, the mobile phone (i.e., the first device) is based on the above situation 3 (i.e., the window size of the first application (i.e., the video application) is re-determined based on the display screen size of the second device (i.e., the tablet computer). In some embodiments, the mobile phone can also be based on the above situation 1 or situation 2 (i.e., the window size of the first application (i.e., the video application) is re-determined based on the display screen size of the first device (i.e., the mobile phone)).

[0238] For example, suppose that the first device uses a heterogeneous screen projection method to project the screen to the second device, wherein the default interface ( Fig.14 (not shown in the figure), a video application window and a short message application window are displayed on the tablet, wherein the video application window is the current active window (i.e., the focus window). Fig.14 As shown, the first device (i.e., the mobile phone) receives an operation (e.g., a user rotating the tablet screen) detected by a sensor driver (e.g., a gyroscope sensor, an acceleration sensor, etc.) from the second device (i.e., the tablet). Fig.14When a screen rotation request is determined by the operation of rotating the tablet computer 90° counterclockwise), the tablet computer sends the screen rotation request corresponding to the screen rotation operation to the mobile phone through the communication connection between the tablet and the mobile phone. Taking the Android system, in which the operating systems of mobile phones and laptops are layered architectures, as an example, the tablet computer can send the screen rotation request to the screen projection management module (such as Assistant or Manager) of the mobile phone through the screen projection management module (such as Assistant or Manager), and the screen projection management module of the mobile phone distributes the screen rotation request to the corresponding application (i.e., the video application). After intercepting (such as hooking) the screen rotation request from the video application, the AMS responds to the screen rotation request. Fig.14 As shown, the tablet computer displays the video application window in a horizontal screen state adapted to the size of the mobile phone, and the short message application window is displayed on the tablet computer simultaneously with the video application window.

[0239] It should be noted that this application Figure 8 (a) Figure 8 (b) Fig.10 , Fig.12 , Fig.13 and Fig.14 The interface of the first application is taken as an example of a native application interface for related introduction. In some embodiments, the interface of the first application can also be a pop-up application interface. Among them, the native application interface can be understood as that during the process of the user initiating a screen rotation request, the core content of the application interface does not change, and only the horizontal and vertical screens of the application interface are switched. The pop-up application interface can be understood as the next layer application interface of the current application interface. For example, the current application interface is the homepage of the video application, and the pop-up application interface can be a certain video interface. For another example, the current application interface is WeChat The chat interface and pop-up application interface can be the WeChat public account interface, etc.

[0240] Exemplarily, assuming that the current projection interface is the homepage of a video application displayed in portrait mode, in response to a user clicking on video A on the homepage of the video application displayed on the second device, the second device sends the pop-up request to the first device through the communication connection with the first device. Taking the Android system in which the operating systems of the first and second devices are layered architectures as an example, the second device can send the pop-up request to the projection management module (such as Assistant or Manager) of the first device through the projection management module (such as Assistant or Manager), and the projection management module of the first device distributes the pop-up request to the corresponding application (i.e., the video application). After intercepting (such as hooking) the pop-up request from the video application, the AMS responds to the pop-up request, renders the video A interface in landscape mode on the virtual screen, and projects the screen to the second device.

[0241] It should be noted that in the application interface display method in the multi-window projection scenario provided in the embodiment of the present application, when the first device updates the interface configuration parameters of the first application according to the re-determined window size of the first application, it will re-determine the relative position relationship between the first application interface and other clone application interfaces when they are co-rendered on the virtual screen. Fig.10 When the mobile phone re-renders the video application interface and the short message application interface according to the received screen rotation request of the user (determined according to the operation 801 received by the laptop), the width of the video application interface changes compared with the previous frame rendering interface. Fig.12 As shown, when the mobile phone re-renders the video application interface and the short message application interface according to the received screen rotation request of the user (determined according to the operation 801 received by the laptop), the width of the video application interface also changes compared with the previous frame rendering interface. Fig.13 As shown, when the mobile phone re-renders the video application interface and the short message application interface according to the received screen rotation request from the user (determined according to the screen rotation operation received by the tablet computer), the width of the video application interface also changes compared to the previous frame rendering interface. Fig.14 As shown, when the mobile phone re-renders the video application interface and the short message application interface according to the screen rotation request received from the user (determined according to the screen rotation operation received by the tablet computer), the width of the video application interface also changes compared to the previous frame rendering interface.

[0242] Among them, this application Fig.10 , Fig.12 , Fig.13 and Fig.14 The example diagram shown takes the projection of the video application window to the rightmost side of the second device as an example. When the video application window is projected to other positions of the second device (such as the leftmost or middle position), when the first device updates the interface configuration parameters of the first application based on the re-determined window size of the first application, it will also re-determine the relative position relationship between the first application interface and other clone application interfaces when they are rendered together on the virtual screen.

[0243] However, based on the above solution, when the application interface on the left is switched from portrait to landscape, all application interfaces on the right will shift to the right; when the application interface on the left is switched from landscape to portrait, all application interfaces on the right will shift to the left. The above shifts usually cause screen flickering on the second device during the screen projection process. For example, the projection interface will flicker or flicker irregularly.

[0244] To solve the above-mentioned screen flickering problem, in some embodiments, when the first device jointly renders the projection interface on the virtual screen, a preset distance margin d can be reserved between different application interfaces. For example, the distance margin d≥b1, where b1 is the length of the display screen of the first device. For another example, d≥b2, where b2 is the length of the display screen of the second device.

[0245] Please refer to Fig.15 , Fig.15 Taking the example of retaining a preset distance margin d=b1 between different application interfaces, a schematic diagram of the first device rendering a projection interface on a virtual screen is shown. Fig.15 As shown, the virtual screen is evenly divided into three areas, where area 1 is used to render application interface A, area 2 is used to render application interface B, and area 3 is used to render application interface C. Fig.15 As shown, based on Fig.15 When rendering application interface A, application interface B, and application interface C, the vertical or horizontal display of any application interface will not cause the displacement of other application interfaces on the virtual screen when rendering. Based on this solution, the problem of screen flashing caused by the displacement of application interfaces can be effectively solved.

[0246] It should be understood that the various schemes of the embodiments of the present application can be used in reasonable combination, and the explanations or descriptions of the various terms appearing in the embodiments can be mutually referenced or explained in the various embodiments, without limitation.

[0247] It should also be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0248] It is understandable that, in order to implement the functions of any of the above-mentioned embodiments, the terminal device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0249] The embodiment of the present application can divide the electronic device (including the first device and the second device) into functional modules. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0250] For example, when the functional modules are divided in an integrated manner, Fig.16 As shown in FIG. 1 , a structural block diagram of an electronic device provided in an embodiment of the present application is shown. For example, the electronic device may be a first device or a second device. Fig.16 As shown, the electronic device may include a processing unit 1610 and a transceiver unit 1620 .

[0251] Among them, when the electronic device is a first device, the processing unit 1610 is used to receive a screen rotation request for initiating a horizontal and vertical screen switch of a window of a first application, and when it is determined that the first application supports window adjustment, the interface configuration parameters of the first application are updated according to the received screen rotation request. For example, the processing unit 1610 is used to support the electronic device to perform the above steps S701, S702, S703, S704, S901, S902-1, S902-2, S903, S904, S905, S1101, S1102-1 or S1102-2, and / or other processes for the technology described herein. The transceiver unit 1620 is used to send a first message including the interface configuration parameters of the first application to the second device. The first information is used for the horizontal and vertical screen switch of the window of the first application of the second device. For example, the transceiver unit 1620 is used to support the electronic device to perform the above step S705, and / or other processes for the technology described herein.

[0252] In one possible structure, Fig.17 As shown, the electronic device may further include a storage unit 1630. The storage unit 1630 is used to store computer programs and processing data and / or processing results in the method provided in the embodiment of the present application.

[0253] It should be noted that the above-mentioned transceiver unit 1620 may include a radio frequency circuit. Specifically, the portable device may receive and send wireless signals through the radio frequency circuit. Generally, the radio frequency circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency circuit may also communicate with other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications, general packet radio service, code division multiple access, wideband code division multiple access, long term evolution, email, short message service, etc.

[0254] It should be understood that each module in the electronic device can be implemented in software and / or hardware form, and there is no specific limitation on this. In other words, the electronic device is presented in the form of functional modules. The "module" here can refer to a specific application integrated circuit ASIC, a circuit, a processor and a memory that executes one or more software or firmware programs, an integrated logic circuit, and / or other devices that can provide the above functions. Optionally, in a simple embodiment, a person skilled in the art can imagine that the portable device can adopt Fig.18 The processing unit 1610 can be Fig.18 The transceiver unit 1620 can be implemented by the processor 1810 shown in FIG. Fig.18 Specifically, the processor is implemented by executing a computer program stored in the memory. Optionally, the memory is a storage unit in the chip, such as a register, a cache, etc. The storage unit may also be a storage unit in the computer device located outside the chip, such as Fig.18 The memory 1830.

[0255] In an optional manner, when data transmission is implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is implemented in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disk (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0256] The steps of the method or algorithm described in conjunction with the embodiments of the present application can be implemented in a hardware manner, or can be implemented by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a mobile hard disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a detection device. Of course, the processor and the storage medium can also be present in the detection device as discrete components.

[0257] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

Claims

1. A method for displaying an application interface in a multi-window projection scenario, characterized in that: The method comprises: The first device runs a first application and a second application, the first device displays the first application, and the first device casts the first application and the second application to a second device so that the second device displays the first application and the second application, wherein the first application and the second application are both of a first size, and a width of the first size is smaller than a height; The first device receives a screen rotation request from the second device, where the screen rotation request is used to initiate a horizontal or vertical screen switch of the first application; When the first application supports window adjustment, the first device determines that the size of the first application is a second size, the width of the second size is greater than the height, and the first device updates the interface configuration parameters of the first application according to the second size; The first device displays the first application according to the interface configuration parameters, and the first device changes the displayed first application to the second size according to the interface configuration parameters. At the same time, the first device sends the interface configuration parameters to the second device, and the interface configuration parameters are used to switch the first application displayed by the second device to a horizontal or vertical screen, so that the first application displayed by the second device changes to the second size. At this time, the second application displayed on the second device is still in the first size.

2. The method according to claim 1, characterized in that The first device updates the interface configuration parameters of the first application according to the second size, including: The first device obtains interface boundary information of the first application according to the re-determined second size; The first device obtains one or more of the following information based on the interface boundary information of the first application: the direction of the first application, the icons displayed on the first application interface, the text displayed on the first application interface, the display position, size and color of each icon displayed on the first application interface, and the display position, size and color of each text displayed on the first application interface.

3. The method according to claim 2, characterized in that The method further comprises: The first device removes the first application process from screen configuration monitoring.

4. The method according to any one of claims 1 to 3, characterized in that The first device determines that the size of the first application is a second size, including: The first device determines, according to the screen rotation request, that the size of the first application is the second size based on application development attributes and / or application data configuration of the first application; or The first device determines, according to the screen rotation request, the size of the first application as the second size based on application development attributes and / or application data of the first application and the size of the display screen of the first device; or The first device determines the size of the first application as a second size based on the screen rotation request, application development attributes and / or application data of the first application, and the size of the display screen of the second device.

5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Determining, by the first device, an application category of the first application; If the application category of the first application is a first type of application, the first device re-determines the window size of the first application based on the display screen size of the second device according to the screen rotation request; If the application category of the first application is a second-category application, the first device redetermines the window size of the first application based on the display screen size of the first device according to the screen rotation request.

6. The method according to claim 5, characterized in that The first type of application is video application.

7. The method according to claim 1, characterized in that The first application is a video application. When the first application is displayed in the first size, the first application includes a video control, and the video control includes at least one of the following: a selection control, a comment control, a favorite control, a download control, or a sharing control. When the first application is displayed in the second size, the first application does not include the video control.

8. The method according to claim 6 or 7, characterized in that: The first device projects the screen to the second device in a same-source screen projection mode or a different-source screen projection mode.

9. An electronic device, characterized in that: The electronic device comprises: Memory for storing computer programs; transceivers, used to receive or send radio signals; A processor is used to execute the computer program so that the electronic device implements the method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program codes, and when the computer program codes are executed by a processing circuit, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Multi-screen interaction system and method

    CN104883617A

  • Information processing method and electronic device

    CN107423010A

  • Screen projection method and screen projection device

    CN108279953A

  • Split-screen display method and electronic equipment

    CN110708086A