In a human-computer interaction method, a second electronic device receives a first picture and identification information of at least one application that are sent by a first electronic device based on a first operation. The second electronic device displays the first picture and an icon of the at least one application. The second electronic device receives a second operation performed on a first icon, where the first icon is one icon in the icon of the at least one application. In response to the second operation, content of an application window of a first application displayed by the second electronic device is the same as that of an application window of the first application opened on a first interface.
Legal claims defining the scope of protection, as filed with the USPTO.
receiving, by a second electronic device, a first picture and identification information of at least one application sent by a first electronic device based on a first operation, wherein the first picture comprises a screenshot of a first interface currently displayed by the first electronic device, wherein each application of the at least one application corresponds to an application window opened on the first interface, and wherein the identification information comprises an icon of each application of the at least one application, the icon of each application of the at least one application being separate from the first picture; displaying, by the second electronic device, the first picture and each icon corresponding to the at least one application, wherein the first picture covers at least a part of a display area of the second electronic device; receiving, by the second electronic device, a second operation performed on a first icon, wherein the first icon corresponds to a first application of the at least one application; and displaying, by the second electronic device in response to the second operation, an application window of the first application corresponding to the first icon, wherein content of the application window of the first application displayed by the second electronic device comprises a same content as that of an application window of the first application opened on the first interface. . A method, comprising:
claim 1 sending, by the second electronic device, a first instruction to the first electronic device in response to the second operation; receiving, by the second electronic device, first information sent by the first electronic device in response to the first instruction, wherein the first information indicates the application window of the first application corresponding to the first icon; and displaying, by the second electronic device based on the first information, the application window of the first application corresponding to the first icon. . The method according to, wherein displaying, by the second electronic device in response to the second operation, the application window of the first application corresponding to the first icon comprises:
claim 1 before receiving, by the second electronic device, the first picture and the identification information of the at least one application, displaying, by the first electronic device, the first interface in full screen, wherein the first interface comprises at least one application window corresponding to the at least one application; receiving, by the first electronic device, the first operation performed on the first interface; and sending, by the first electronic device in response to the first operation, the first picture and the identification information of the at least one application to the second electronic device. . The method according to, the method further comprising:
claim 2 displaying, by the second electronic device in full screen based on the first information and the second operation, the application window of the first application corresponding to the first icon. . The method according to, wherein displaying, by the second electronic device based on the first information, the application window of the first application corresponding to the first icon comprises:
claim 2 displaying, by the second electronic device on a left side of a screen based on the first information and the second operation, the application window of the first application corresponding to the first icon. . The method according to, wherein displaying, by the second electronic device based on the first information, the application window of the first application corresponding to the first icon comprises:
claim 5 . The method according to, wherein the second operation comprises a dragging of the first icon to a first area of the screen of the second electronic device, and the first area is located on the left side of the screen of the second electronic device.
claim 2 displaying, by the second electronic device on a right side of a screen, based on the first information and the second operation, the application window of the first application corresponding to the first icon. . The method according to, wherein displaying, by the second electronic device based on the first information, the application window of the first application corresponding to the first icon comprises:
claim 7 . The method according to, wherein the second operation comprises a dragging of the first icon to a first area of the screen of the second electronic device, wherein the first area is located on the right side of the screen of the second electronic device.
claim 2 displaying, by the second electronic device on an upper side of a screen, based on the first information and the second operation, the application window of the first application corresponding to the first icon. . The method according to, wherein displaying, by the second electronic device based on the first information, the application window of the first application corresponding to the first icon comprises:
claim 9 . The method according to, wherein the second operation comprises a dragging of the first icon to a first area of the screen of the second electronic device, wherein the first area is located on the upper side of the screen of the second electronic device.
claim 2 displaying, by the second electronic device on a lower side of a screen, based on the first information and the second operation, the application window of the first application corresponding to the first icon. . The method according to, wherein displaying, by the second electronic device based on the first information, the application window of the first application corresponding to the first icon comprises:
claim 11 . The method according to, wherein the second operation comprises a dragging of the first icon to a first area of the screen of the second electronic device, wherein the first area is located on the lower side of the screen of the second electronic device.
claim 1 the second electronic device is connected to the first electronic device in a wireless or wired manner; or the second electronic device and the first electronic device are connected to a same wireless local area network; or the second electronic device and the first electronic device are logged in with a same user account; or the second electronic device is an extended screen of the first electronic device; or the second electronic device and the first electronic device respectively comprise two screens of a same electronic device. . The method according to, wherein
claim 1 the first operation comprises a three-finger sliding operation; or the first icon corresponding to the first application of the at least one application is displayed above, below, to the left of, or to the right of the first picture. . The method according to, wherein
displaying, by the first screen, a first interface in full screen, wherein the first interface comprises at least one application window corresponding to at least one application; receiving, by the first screen, a first operation performed on the first interface; controlling, by the electronic device in response to the first operation, the second screen to display a first picture and an icon of each application of the at least one application, wherein the first picture is a screenshot of the first interface, and the first picture covers at least a part of a display area of the second screen; receiving, by the second screen, a second operation performed on a first icon, wherein the first icon corresponds to a first application of the at least one application; and displaying, by the second screen in response to the second operation, an application window of the first application corresponding to the first icon, wherein content of the application window of the first application displayed on the second screen comprises the same content as that of an application window of the first application opened on the first interface, wherein the icon of each application of the at least one application is separate from the first picture. . A method, applied to an electronic device comprising a first screen and a second screen, the method comprising:
claim 15 . The method according to, wherein the first operation comprises at least one of sliding up, sliding down, sliding left, sliding right, sliding lower left, sliding lower right, sliding upper left, or sliding upper right on the first interface.
claim 15 controlling, by the electronic device in response to the second operation, the second screen to display the application window of the first application corresponding to the first icon. . The method according to, wherein displaying, by the second screen in response to the second operation, the application window of the first application corresponding to the first icon comprises:
claim 15 displaying, by the second screen in full screen in response to the second operation, the application window of the first application corresponding to the first icon. . The method according to, wherein displaying, by the second screen in response to the second operation, the application window of the first application corresponding to the first icon comprises:
claim 15 displaying, by the second screen on a left side of the second screen in response to the second operation, the application window of the first application corresponding to the first icon. . The method according to, wherein displaying, by the second screen in response to the second operation, the application window of the first application corresponding to the first icon comprises:
at least one processor; and at least one memory coupled to the at least one processor and configured to store programming instructions that, when executed by the at least one processor, cause the electronic device to: receive a first picture and identification information of at least one application sent by an other electronic device based on a first operation, wherein the first picture comprises a screenshot of a first interface currently displayed by the other electronic device, wherein each application of the at least one application corresponds to an application window opened on the first interface, and wherein the identification information comprises an icon of the each application of the at least one application; display the first picture and each icon of the at least one application, wherein the first picture covers at least a part of a display area of the electronic device; receive a second operation performed on a first icon, wherein the first icon corresponds to a first application of the at least one application; and display, in response to the second operation, an application window of the first application corresponding to the first icon, wherein content of the application window of the first application displayed by the electronic device comprises a same content as that of an application window of the first application opened on the first interface, wherein the icon of each application of the at least one application is separate from the first picture. . An electronic device, comprising:
Complete technical specification and implementation details from the patent document.
This application is a National Stage of International Application No. PCT/CN2022/113067 filed on Aug. 17, 2022, which claims priority to Chinese Patent Application No. 202110961754.3, filed on Aug. 20, 2021. Both of the aforementioned applications are hereby incorporated by reference in their entireties.
Embodiments of this application relate to the field of intelligent terminals, and in particular, to an electronic device and a human-computer interaction method.
In the field of intelligent terminals, there are increasingly more gesture operations performed by a user to control an application of an electronic device. To reduce types of gesture operations to facilitate management, when the gesture operations are set for the electronic device, a plurality of functions are completed by using one gesture operation. For example, for a same gesture operation, different functions are generated when the gesture operation is performed at different locations of a window of an application displayed on the electronic device. However, this requires high precision of the gesture operation. For example, when a function is implemented, the gesture operation is limited to a narrow operation area on a screen of the electronic device. If a location of the gesture operation is deviated, a misoperation is easily generated.
An objective of embodiments of this application is to provide an electronic device and a human-computer interaction method, to improve user operation experience in a process of cross-screen display of an application.
A first aspect of embodiments of this application provides a human-computer interaction method, including: A second electronic device receives a first picture and identification information of at least one application that are sent by a first electronic device based on a first operation, where the first picture is a screenshot of a first interface currently displayed by the first electronic device, the at least one application is an application corresponding to an application window opened on the first interface, and the identification information is an icon of the application.
The second electronic device displays the first picture and the icon of the at least one application, where the first picture covers a part of a display area of the second electronic device.
The second electronic device receives a second operation performed on a first icon, where the first icon is one icon in the icon of the at least one application.
The second electronic device displays, in response to the second operation, an application window of a first application corresponding to the first icon, where content of the application window of the first application displayed by the second electronic device is the same as that of an application window of the first application opened on the first interface.
In other words, in embodiments of this application, the first electronic device and the second electronic device may each be an intelligent terminal with a touch screen. For example, the first electronic device and the second electronic device may each be a tablet computer. The first operation and the second operation may be a gesture operation performed on the touch screen of the first electronic device and the second electronic device, for example, may be any one of a tapping operation, a sliding operation, or a dragging operation.
The first electronic device may simultaneously display, on a screen of the first electronic device, application windows of an opened document application, a messages application, and a browser application. The first picture is a screenshot including the application windows of the document application, the messages application, and the browser application. The identification information corresponding to the application is icons of the document application, the messages application, and the browser application.
For example, the first operation is a three-finger sliding operation. Because the first operation may be performed on any area of the screen of the first electronic device, a user does not need to perform a high-precision operation, for example, touching and holding an application window of an application on the screen of the first electronic device, so that operation experience of the user is improved.
The second electronic device may display the first picture and the icon of the application in a local area of a screen, for example, a lower right corner of the screen. The icon of the application may be located above, below, on a left side of, or on a right side of the first picture.
The second operation may be an operation performed on the first picture on the screen of the second electronic device, the icon of the application, or another display area of the screen of the second electronic device. The second operation may be a tapping operation on the first picture and the icon of the application; or a dragging operation of dragging the icon of the application to an area of the screen of the second electronic device, for example, dragging to an upper area of the screen; or a tapping operation performed in an area of the screen of the second electronic device other than the first picture and the icon of the application.
When the second operation is performed on the icon of the application, the application corresponding to the icon of the application is moved from the first electronic device to the second electronic device for display. A size of the application window of the application in the screen of the second electronic device may be different from that in the first electronic device. For example, the application window of the application in the screen of the first electronic device is displayed in a thumbnail manner. After the application is moved to the second electronic device, the application window of the application in the screen of the second electronic device is displayed in a full-screen manner.
The second electronic device sends a first instruction to the first electronic device in response to the second operation. In a possible implementation of the first aspect, that the second electronic device displays, in response to the second operation, an application window of a first application corresponding to the first icon includes:
The second electronic device receives first information sent by the first electronic device in response to the first instruction, where the first information indicates the application window of the first application corresponding to the first icon.
The second electronic device displays, based on the first information, the application window of the first application corresponding to the first icon.
In other words, in embodiments of this application, the first instruction may be a tapping operation or a dragging operation on the icon of the application. The first information includes an application name corresponding to the icon of the application.
The first electronic device displays the first interface in full screen, where the first interface includes at least one application window corresponding to the at least one application. In a possible implementation of the first aspect, before the second electronic device receives the first picture and the identification information of the at least one application that are sent by the first electronic device, the method further includes:
The first electronic device receives the first operation performed on the first interface.
The first electronic device sends, in response to the first operation, the first picture and the identification information of the at least one application to the second electronic device.
In embodiments of this application, the first electronic device may simultaneously display, on a screen of the first electronic device, application windows of an opened document application, a messages application, and a browser application. The first operation is a three-finger sliding operation performed on the screen of the first electronic device. The first picture is a screenshot including the application windows of the document application, the messages application, and the browser application. The identification information corresponding to the application is icons of the document application, the messages application, and the browser application.
The second electronic device displays, in full screen based on the first information and the second operation, the application window of the first application corresponding to the first icon. In a possible implementation of the first aspect, that the second electronic device displays, based on the first information, the application window of the first application corresponding to the first icon includes:
In other words, in embodiments of this application, in response to the tapping operation performed on the icon of the application, the second electronic device displays, in full screen on the screen of the second electronic device, the application window of the application corresponding to the icon of the application.
The second electronic device displays, on a left side of the screen based on the first information and the second operation, the application window of the first application corresponding to the first icon. In a possible implementation of the first aspect, that the second electronic device displays, based on the first information, the application window of the first application corresponding to the first icon includes:
In a possible implementation of the first aspect, the second operation includes dragging the first icon to a first area of the screen of the second electronic device, and the first area is located on the left side of the screen of the second electronic device.
The second electronic device displays, on a right side of the screen based on the first information and the second operation, the application window of the first application corresponding to the first icon. In a possible implementation of the first aspect, that the second electronic device displays, based on the first information, the application window of the first application corresponding to the first icon includes:
In a possible implementation of the first aspect, the second operation includes dragging the first icon to a first area of the screen of the second electronic device, and the first area is located on the right side of the screen of the second electronic device.
The second electronic device displays, on an upper side of the screen based on the first information and the second operation, the application window of the first application corresponding to the first icon. In a possible implementation of the first aspect, that the second electronic device displays, based on the first information, the application window of the first application corresponding to the first icon includes:
In a possible implementation of the first aspect, the second operation includes dragging the first icon to a first area of the screen of the second electronic device, and the first area is located on the upper side of the screen of the second electronic device.
The second electronic device displays, on a lower side of the screen based on the first information and the second operation, the application window of the first application corresponding to the first icon. In a possible implementation of the first aspect, that the second electronic device displays, based on the first information, the application window of the first application corresponding to the first icon includes:
In a possible implementation of the first aspect, the second operation includes dragging the first icon to a first area of the screen of the second electronic device, and the first area is located on the lower side of the screen of the second electronic device.
In other words, in embodiments of this application, the first area may be a local area of the screen of the second electronic device, for example, a left half screen, a right half screen, an upper half screen, or a lower half screen. In response to the dragging operation performed on the icon of the application, based on the first area at which the icon of the application is released by the dragging operation on the screen of the second electronic device, the second electronic device displays, at a location that is in the screen of the second electronic device and that corresponds to the first area, the application window of the application corresponding to the icon of the application. For example, if the icon of the application is dragged to the left half screen of the screen of the second electronic device, the application window of the application is displayed on the left half screen. For another example, if the icon of the application is dragged to the upper half screen of the screen of the second electronic device, the application window of the application is displayed on the upper half screen.
In a possible implementation of the first aspect, the second electronic device is connected to the first electronic device in a wireless or wired manner; or the second electronic device and the first electronic device are located in a same wireless local area network; or the second electronic device and the first electronic device are logged in with a same user account; or the second electronic device is an extended screen of the first electronic device; or the second electronic device and the first electronic device may respectively include two screens of a same electronic device. In other words, a same electronic device may include two screens, and the interaction method between two electronic devices according to embodiments of this application may be applied to the two screens on the same electronic device. For example, the first electronic device includes a first screen, the second electronic device includes a second screen, and the two screens are located on a same electronic device. When the two screens are on the same electronic device, the two screens share a control device such as a processor.
In a possible implementation of the first aspect, the first operation is a three-finger sliding operation; or the icon of the at least one application is displayed above, below, to the left of, or to the right of the first picture.
A first electronic device displays a first interface in full screen, where the first interface includes at least one application window corresponding to at least one application. A second aspect of embodiments of this application provides a human-computer interaction method, including:
The first electronic device receives a first operation performed on the first interface.
The first electronic device sends, in response to the first operation, a first picture and identification information of at least one application to a second electronic device, where the first picture is a screenshot of the first interface, and the identification information is an icon of an application.
The second electronic device displays the first picture and the icon of the at least one application, where the first picture covers a part of a display area of the second electronic device.
The second electronic device receives a second operation performed on a first icon, where the first icon is one icon in the icon of the at least one application.
The second electronic device displays, in response to the second operation, an application window of a first application corresponding to the first icon, where content of the application window of the first application displayed by the second electronic device is the same as that of an application window of a first application opened on the first interface.
In other words, in embodiments of this application, the first electronic device and the second electronic device may each be an intelligent terminal with a touch screen. For example, the first electronic device and the second electronic device may each be a tablet computer.
The first electronic device may simultaneously display, on a screen of the first electronic device, application windows of an opened document application, a messages application, and a browser application. The first picture is a screenshot including the application windows of the document application, the messages application, and the browser application. The identification information corresponding to the application is icons of the document application, the messages application, and the browser application.
The first operation and the second operation may be a gesture operation performed on the touch screen of the first electronic device and the second electronic device, for example, may be any one of a tapping operation, a sliding operation, or a dragging operation.
For example, the first operation is a three-finger sliding operation. Because the first operation may be performed on any area of the screen of the first electronic device, a user does not need to perform a high-precision operation, for example, touching and holding an application window of an application on the screen of the first electronic device, so that operation experience of the user is improved.
The second electronic device may display the first picture and the icon of the application in a local area of a screen, for example, a lower right corner of the screen. The icon of the application may be located above, below, on a left side of, or on a right side of the first picture.
The second operation may be an operation performed on the first picture on the screen of the second electronic device, the icon of the application, or another display area of the screen of the second electronic device. The second operation may be a tapping operation on the first picture and the icon of the application; or a dragging operation of dragging the icon of the application to an area of the screen of the second electronic device, for example, dragging to an upper area of the screen; or a tapping operation performed in an area of the screen of the second electronic device other than the first picture and the icon of the application.
When the second operation is performed on the icon of the application, the application corresponding to the icon of the application is moved from the first electronic device to the second electronic device for display. A size of the application window of the application in the screen of the second electronic device may be different from that in the first electronic device. For example, the application window of the application in the screen of the first electronic device is displayed in a thumbnail manner. After the application is moved to the second electronic device, the application window of the application in the screen of the second electronic device is displayed in a full-screen manner.
In a possible implementation of the second aspect, the second electronic device is one of at least one third electronic device, and each third electronic device is located in a first direction of the first electronic device.
The first electronic device selects a third electronic device in the first direction corresponding to a direction of the first operation as the second electronic device. In a possible implementation of the second aspect, that the first electronic device sends, in response to the first operation, a first picture and identification information of at least one application to a second electronic device includes:
The first electronic device sends the first picture and the identification information of the at least one application to the selected second electronic device.
In a possible implementation of the second aspect, the first operation includes at least one of sliding up, sliding down, sliding left, sliding right, sliding lower left, sliding lower right, sliding upper left, and sliding upper right on the first interface.
In other words, in embodiments of this application, there may be a plurality of third electronic devices, and the plurality of third electronic devices are separately located in different directions of the first electronic device. The first electronic device selects, based on the direction of the first operation, a third electronic device in a corresponding direction as the second electronic device, and sends the first picture and the identification information of the at least one application to the second electronic device. For example, there is a third electronic device on a left side of the first electronic device and a third electronic device on a right side of the first electronic device. A gesture operation of sliding left is performed on the screen of the first electronic device, so that the first electronic device determines the third electronic device on the left side as the second electronic device, and sends the first picture and the identification information of the at least one application to the second electronic device. Alternatively, the third electronic device may be located below, above, on an upper left side of, on an upper right side of, on a lower left side of, and on a lower right side of the first electronic device.
The second electronic device sends a first instruction to the first electronic device in response to the second operation. In a possible implementation of the second aspect, that the second electronic device displays, in response to the second operation, an application window of a first application corresponding to the first icon includes:
The second electronic device receives first information sent by the first electronic device in response to the first instruction, where the first information indicates the application window of the first application corresponding to the first icon.
The second electronic device displays, based on the first information, the application window of the first application corresponding to the first icon.
In other words, in embodiments of this application, the first instruction may be a tapping operation or a dragging operation on the icon of the application. The first information includes an application name corresponding to the icon of the application.
The second electronic device displays, in full screen based on the first information and the second operation, the application window of the first application corresponding to the first icon. In a possible implementation of the second aspect, that the second electronic device displays, based on the first information, the application window of the first application corresponding to the first icon includes:
In other words, in embodiments of this application, in response to the tapping operation performed on the icon of the application, the second electronic device displays, in full screen on the screen of the second electronic device, the application window of the application corresponding to the icon of the application.
The second electronic device displays, on a left side of the screen based on the first information and the second operation, the application window of the first application corresponding to the first icon. In a possible implementation of the second aspect, that the second electronic device displays, based on the first information, the application window of the first application corresponding to the first icon includes:
In a possible implementation of the second aspect, the second operation includes dragging the first icon to a first area of the screen of the second electronic device, and the first area is located on the left side of the screen of the second electronic device.
The second electronic device displays, on a right side of the screen based on the first information and the second operation, the application window of the first application corresponding to the first icon. In a possible implementation of the second aspect, that the second electronic device displays, based on the first information, the application window of the first application corresponding to the first icon includes:
In a possible implementation of the second aspect, the second operation includes dragging the first icon to a first area of the screen of the second electronic device, and the first area is located on the right side of the screen of the second electronic device.
The second electronic device displays, on an upper side of the screen based on the first information and the second operation, the application window of the first application corresponding to the first icon. In a possible implementation of the second aspect, that the second electronic device displays, based on the first information, the application window of the first application corresponding to the first icon includes:
In a possible implementation of the second aspect, the second operation includes dragging the first icon to a first area of the screen of the second electronic device, and the first area is located on the upper side of the screen of the second electronic device.
The second electronic device displays, on a lower side of the screen based on the first information and the second operation, the application window of the first application corresponding to the first icon. In a possible implementation of the second aspect, that the second electronic device displays, based on the first information, the application window of the first application corresponding to the first icon includes:
In a possible implementation of the second aspect, the second operation includes dragging the first icon to a first area of the screen of the second electronic device, and the first area is located on the lower side of the screen of the second electronic device.
In other words, in embodiments of this application, the first area may be a local area of the screen of the second electronic device, for example, a left half screen, a right half screen, an upper half screen, or a lower half screen. In response to the dragging operation performed on the icon of the application, based on the first area at which the icon of the application is released by the dragging operation on the screen of the second electronic device, the second electronic device displays, at a location that is in the screen of the second electronic device and that corresponds to the first area, the application window of the application corresponding to the icon of the application. For example, if the icon of the application is dragged to the left half screen of the screen of the second electronic device, the application window of the application is displayed on the left half screen. Alternatively, the first area may be on the right half screen, the upper half screen, or the lower half screen of the screen of the second electronic device. For another example, if the icon of the application is dragged to the upper half screen of the screen of the second electronic device, the application window of the application is displayed on the upper half screen.
In a possible implementation of the second aspect, the first electronic device further takes a screenshot of the first interface in response to the first operation, and stores the screenshot of the first interface on the first electronic device.
In other words, in embodiments of this application, in addition to sending the first picture and the identification information of the application to the second electronic device, the first electronic device may further implement a function of taking a screenshot of the first electronic device.
In a possible implementation of the second aspect, the second electronic device is connected to the first electronic device in a wireless or wired manner; or the second electronic device and the first electronic device are located in a same wireless local area network; or the second electronic device and the first electronic device are logged in with a same user account; or the second electronic device is an extended screen of the first electronic device.
In other words, in embodiments of this application, the second electronic device and the first electronic device may establish an extended screen connection, and the screen of the second electronic device is used as an extended screen of the first electronic device.
In a possible implementation of the second aspect, the first operation is a three-finger sliding operation; or the icon of the at least one application is displayed above, below, to the left of, or to the right of the first picture.
The first screen displays a first interface in full screen, where the first interface includes at least one application window corresponding to at least one application. A third aspect of the embodiments of this application provides a human-computer interaction method, applied to an electronic device including a first screen and a second screen. The method includes:
The first screen receives a first operation performed on the first interface.
The electronic device controls, in response to the first operation, the second screen to display a first picture and an icon of the at least one application, where the first picture is a screenshot of the first interface, and the first picture covers a part of a display area of the second screen.
The second screen receives a second operation performed on a first icon, where the first icon is one icon in the icon of the at least one application.
The second screen displays, in response to the second operation, an application window of a first application corresponding to the first icon, where content of the application window of the first application displayed on the second screen is the same as that of an application window of the first application opened on the first interface.
For example, the electronic device may be a dual-screen computer with two screens.
In a possible implementation of the third aspect, the first operation includes at least one of sliding up, sliding down, sliding left, sliding right, sliding lower left, sliding lower right, sliding upper left, and sliding upper right on the first interface.
In a possible implementation of the third aspect, specifically, the electronic device controls, in response to the second operation, the second screen to display the application window of the first application corresponding to the first icon.
In a possible implementation of the third aspect, the electronic device controls, based on the second operation, the second screen to display, in different forms, the application window of the first application corresponding to the first icon. For example, when the second operation is tapping the first icon, in response to the second operation, the second screen may display, in full screen, the application window of the first application corresponding to the first icon. Alternatively, the second operation includes dragging the first icon to a first area of the second screen. When the first area is located on a left side of the second screen, in response to the second operation, the second screen displays, on the left side of the screen, the application window of the first application corresponding to the first icon. When the first area is located on a right side of the second screen, in response to the second operation, the second screen displays, on the right side of the screen, the application window of the first application corresponding to the first icon.
In a possible implementation of the third aspect, the electronic device may further display, in response to the first operation, the screenshot of the first interface on the first screen. Further, based on an operation performed by a user on the screenshot, the electronic device may edit, save, or delete the screenshot.
In a possible implementation of the third aspect, the first operation is a three-finger sliding operation.
In a possible implementation of the third aspect, the icon of the at least one application is displayed above, below, to the left of, or to the right of the first picture.
A fourth aspect of embodiments of this application provides an electronic device, including: a memory, where the memory stores instructions; and a processor, configured to read and execute the instructions in the memory, so that the electronic device is enabled to perform the human-computer interaction method provided in the first aspect or the third aspect.
A fifth aspect of embodiments of this application provides an electronic device, including: a memory, where the memory stores instructions; and a processor, configured to read and execute the instructions in the memory, so that the electronic device is enabled to perform the method performed by the first device in the human-computer interaction method provided in the second aspect.
A sixth aspect of embodiments of this application provides a computer-readable storage medium, where the computer-readable storage medium includes instructions, and when the instructions are executed by an electronic device, the electronic device is enabled to implement the human-computer interaction method provided in the first aspect or the third aspect.
A seventh aspect of embodiments of this application provides a computer-readable storage medium, where the computer-readable storage medium includes instructions, and when the instructions are executed by an electronic device, the electronic device is enabled to implement the method performed by the first device in the human-computer interaction method provided in the second aspect.
An eighth aspect of embodiments of this application provides a computer program product, including a non-volatile computer-readable storage medium, where the non-volatile computer-readable storage medium includes computer program code used to perform the human-computer interaction method provided in the first aspect or the third aspect.
A ninth aspect of embodiments of this application provides a computer program product, including a non-volatile computer-readable storage medium, where the non-volatile computer-readable storage medium includes computer program code used to perform the method performed by the first electronic device in the second aspect.
Embodiments of this application include but are not limited to an electronic device and a human-computer interaction method. To make the objectives, technical solutions, and advantages of embodiments of this application clearer, the following further describes the implementations of embodiments of this application in detail with reference to the accompanying drawings.
1 FIG. 100 101 100 200 100 101 As described above, for a same gesture operation corresponding to a plurality of functions, a problem exists that a misoperation is prone to occur due to a narrow operation area. For example,shows a scenario in which a user performs a gesture operation on a screen of an electronic device, and moves a window of a document applicationon the screen of the electronic deviceto a screen of an electronic devicethat is communicatively connected to the electronic device, to implement cross-screen display of the document application.
1 FIG. 2 FIG. 3 FIG. 200 100 101 100 1011 101 100 101 200 100 1011 101 1011 101 1011 101 1011 101 101 101 As shown in, the screen of the electronic devicemay be used as an extended screen of the screen of the electronic device, and the window of the document applicationis displayed on the screen of the electronic devicein a floating window manner. After the user performs a gesture operation of single-finger dragging-down on a title barof the window of the document application, as shown in, the electronic devicemoves the window of the document applicationto the screen of the electronic device. However, because a contact area of a finger of the user on the screen of the electronic deviceis wider than the title barof the window of the document application, the finger of the user may touch an edge of the title barof the window of the document application. In addition, the edge of the title barof the window of the document applicationfurther supports changing a window size by using a gesture operation of single-finger dragging. As shown in, when the gesture operation of single-finger dragging is performed by the user on the title barof the window of the document application, a misoperation of changing the window size of the document applicationis generated, for example, a height of the window of the document applicationdecreases.
To resolve the foregoing problem, embodiments of this application provide a human-computer interaction method, to implement cross-screen display of an application of an electronic device. In this method, in response to a first gesture operation performed by a user on a first screen, an execution result of the first gesture operation is displayed on a second screen, where the execution result may be a screenshot of a currently opened application window on the first screen. In response to a second gesture operation performed by the user on the execution result displayed on the second screen, an application window selected by the second gesture operation is moved from the first screen to the second screen for display, where the second gesture operation is used to select at least one application in the execution result. The first screen and the second screen may belong to a same electronic device, or may belong to different electronic devices. For example, after the user performs a gesture operation of three-finger sliding on the screen of the first electronic device, a screenshot of an application window of the screen of the first electronic device and an icon of an application included in the screenshot are displayed on the screen of the second electronic device. After the user performs a gesture operation of tapping or dragging on the icon of the application displayed on the screen of the second electronic device, the application corresponding to the icon is moved from the first electronic device to the second electronic device for display, so that cross-screen display of the application is implemented.
According to the method in embodiments of this application, in a scenario in which an application is displayed across screens, the user may not need to perform a high-precision gesture operation, for example, a dragging operation on a title bar of the application. Instead, the user may perform the second gesture operation on the execution result of the first gesture operation to implement cross-screen display of the application. For example, a tapping operation is performed on an execution result corresponding to a screenshot gesture of three-finger sliding, namely, an icon corresponding to an application window displayed in a screenshot, to implement cross-screen display of an application. In this way, operation difficulty of the second gesture operation performed by the user can be reduced, cross-screen display of the application can be implemented, and it can be further ensured that the execution result of the first gesture operation is not affected.
It may be understood that the technical solutions in embodiments of this application may be applicable to the field of intelligent terminals having a touchscreen or a touchpad. The electronic device in embodiments of this application is a terminal device having an electronic display screen. Common terminal devices include: a vehicle-mounted device, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a mobile Internet device (mobile Internet device, MID), a wearable device (for example, a smart watch, a smart band, and a pedometer), a personal digital assistant, a portable media player, a navigation device, a video game device, a set-top box, a virtual reality and/or augmented reality device, an Internet of Things device, an industrial control device, a streaming media client device, an e-book, a reading device, a POS terminal, and another device.
4 FIG. 100 100 110 120 130 140 150 160 is a schematic diagram of a structure of an electronic deviceaccording to an embodiment of this application. The electronic devicemay include a processor, an internal memory, an interface module, a power module, a wireless communication module, and a screen.
100 100 It may be understood that the structure shown in this embodiment of this application does not constitute a specific limitation on the electronic device. In some other embodiments of this application, the electronic devicemay include more or fewer components than those shown in the figure, or combine some components, or split some components, or have different component arrangements. The components shown in the figure may be implemented by using hardware, software, or a combination of software and hardware.
110 110 The processormay include one or more processing units. For example, the processormay include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, a neural-network processing unit (neural-network processing unit, NPU), and/or the like. Different processing units may be independent components, or may be integrated into one or more processors.
110 110 100 A memory may be further disposed in the processor, and is configured to store instructions and data. In embodiments of this application, the processormay implement an execution result of a gesture operation performed by a user on the electronic device.
120 120 100 120 The internal memorymay be configured to store computer-executable program code, and the executable program code includes instructions. The internal memorymay include a program storage area and a data storage area. The program storage area may store an operating system, an application (such as a document application, a messages application, and a browser) required by at least one function, and the like. The data storage area may store data (such as audio data and an address book) created during use of the electronic device, and the like. In embodiments of this application, the internal memorymay store an icon of an application.
130 100 110 130 The interface modulemay be configured to connect to an external memory card, for example, a micro SD card, to extend a storage capability of the electronic device. The external memory card communicates with the processorthrough the interface module, to implement a data storage function. For example, files such as music and videos are stored in the external memory card.
140 110 120 111 The power modulereceives input of a battery, and supplies power to the processor, the internal memory, a display, and the like.
150 100 The wireless communication modulemay provide a wireless communication solution that is applied to the electronic deviceand that includes a wireless local area network (wireless local area network, WLAN) (for example, a wireless fidelity (wireless fidelity, Wi-Fi) network), Bluetooth (Bluetooth, BT), a global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), a near field communication (near field communication, NFC) technology, an infrared (infrared, IR) technology, or the like.
160 160 110 160 160 The screenmay be a touchscreen formed by a touch sensor and a display screen, which is also referred to as a “touchscreen”, and is configured to detect a gesture operation performed on or near the touchscreen. The screenmay transfer a detected gesture operation to the processor, to determine a type of the gesture operation. In embodiments of this application, the screenis configured to receive a gesture operation performed by the user. For example, the screenmay determine, by using the touch sensor, a type of the gesture operation performed by the user.
100 100 After the hardware structure of the electronic devicein embodiments of this application is described, the following describes a block diagram of a software structure of the electronic device.
5 FIG. 100 is a block diagram of a software structure of an electronic deviceaccording to an embodiment of the present invention.
In a layered architecture, software is divided into several layers, and each layer has a clear role and task. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers: an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
5 FIG. 102 103 As shown in, the application packages may include applications such as Camera, Gallery, Calendar, Calls, Maps, Navigation, WLAN, Bluetooth, Music, Videos, and Messages. In embodiments of this application, the application packages may include a start document application, a messages application, and a browser.
The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for an application at the application layer.
5 FIG. As shown in, the application framework layer may include: an extended screen manager, a window manager, a content provider, a view system, a resource manager, a notification manager, a gesture manager, an application manager, and the like.
100 The gesture manager is configured to identify a gesture operation performed by a user on a screen of the electronic device.
100 100 100 100 The extended screen manager is configured to determine an electronic device connected to the electronic devicein a wired or wireless manner, and configure a screen of the electronic device as an extended screen of the electronic device. In embodiments of this application, the extended screen manager may further determine a location relationship between the extended screen and the electronic devicebased on a location relationship between the electronic device and the electronic device.
100 The window manager is configured to manage a window program. The window manager may obtain a size of the display, determine whether there is a status bar, perform screen locking, take a screenshot, and the like. In embodiments of this application, the window manager may display, in a thumbnail or split-screen manner, an application that is started by the electronic device.
The content provider is configured to store and obtain data, and enable the data to be accessed by an application. The data may include a video, an image, audio, calls that are made and received, a browsing history, a bookmark, a phone book, and the like.
200 100 100 200 100 The view system includes visual controls such as a control for displaying a text and a control for displaying an image. The view system may be configured to construct an application. The display interface may include one or more views. The view herein is used to display a visual control in an area in which the view is located and process an event that occurs in the area in which the view is located. In embodiments of this application, the view system may display, on a screen of the electronic deviceconnected to the electronic device, an execution result of a gesture operation performed on the electronic device. In addition, the view system may further set a display area on a side of the execution result displayed on the screen of the electronic device, and display, in the display area, the icon of the application that is displayed on the screen of the electronic device.
The resource manager provides various resources such as a localized character string, an icon, an image, a layout file, and a video file for an application.
The notification manager enables an application to display notification information in a status bar, and may be configured to convey a notification message. The notification manager may automatically disappear after a short pause without a user interaction.
100 The application manager is configured to obtain information about a running application, and may obtain a name, a package name, and the like of the application. In embodiments of this application, the application manager may determine an application currently displayed on a screen of the electronic deviceand a name of the application.
The Android runtime includes a kernel library and a virtual machine. The Android runtime is responsible for scheduling and management of the Android system.
The kernel library includes two parts: a performance function that needs to be invoked in java language, and a kernel library of Android.
The application layer and the application framework layer run on the virtual machine. The virtual machine executes java files of the application layer and the application framework layer as binary files. The virtual machine is configured to implement functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
The system library may include a plurality of function modules, for example, a surface manager (surface manager), a media library (media library), a three-dimensional graphics processing library (for example, OpenGL ES), and a 2D graphics engine (for example, SGL).
The surface manager is configured to manage a display subsystem and provide fusion of 2D and 3D layers for a plurality of applications.
The media library supports playback and recording in a plurality of commonly used audio and video formats, and static image files. The media library may support a plurality of audio and video encoding formats, for example, MPEG-4, H.264, MP3, AAC, AMR, JPG, and PNG.
The three-dimensional graphics processing library is configured to implement three-dimensional graphics drawing, image rendering, composition, layer processing, and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
6 FIG. 6 FIG. 6 FIG. The following describes in detail a method for cross-screen display of an application according to an embodiment of this application by using. A solution for cross-screen display of an application inin this embodiment of this application is applied to an electronic device. The electronic device described inmay be a tablet computer.
6 FIG. Specifically, as shown in, the method for cross-screen display of an application includes the following steps.
601 100 S: The electronic devicedisplays a first interface, where the first interface includes one or more application windows, and each application window corresponds to one application.
100 101 100 100 100 101 100 102 103 7 FIG. After a user opens the electronic device, as shown in, the user may tap a “document” iconon a user interface (user interface, UI) of the electronic device. After the electronic devicereceives an instruction of the tapping operation of the user, the electronic devicestarts a document application. Similarly, the electronic devicemay further sequentially start a messages applicationand a browser.
100 100 100 101 102 103 100 100 3 100 101 102 103 100 7 FIG. The electronic devicemay simultaneously display a plurality of application windows. For example, the user may perform a simultaneous display operation on the electronic device, so that a window manager of the electronic devicesimultaneously displays application windows of the document application, the messages application, and the browser applicationon a screen of the electronic device, to form the first interface of the electronic device. For example, the simultaneous display operation may be a gesture operation, of touching and holding forseconds and sliding up, that is performed by the user on a lower edge of the screen of the electronic device. In an embodiment of this application, after the user performs the simultaneous display operation, as shown in, the application windows of the document application, the messages application, and the browserare displayed on the screen of the electronic devicein a thumbnail manner.
100 100 101 102 103 101 102 103 100 It may be understood that, in another embodiment of this application, the window manager of the electronic devicemay alternatively split the screen of the electronic deviceinto a plurality of windows, and display the document application, the messages application, and the browseron split screens. One main window is combined with a plurality of auxiliary windows, to separately display the document application, the messages application, and the browser, so that the user may pay attention to the application in each window. Alternatively, when opening each application, the electronic deviceuses a non-full-screen window by default, so that application windows of all opened applications can be displayed on the screen.
602 100 S: The electronic devicereceives a first gesture operation.
100 100 8 FIG.A 8 FIG.B The electronic devicemay identify, by using a gesture manager, the first gesture operation performed by the user. For example, in this embodiment of this application, the first gesture operation herein may be a gesture operation of three-finger sliding performed by the user on the screen of the electronic device. As shown inand, the gesture operation of three-finger sliding that is used as the first gesture operation may be specifically three-finger vertical sliding down. The gesture operation may be performed at any location on the screen.
100 In another embodiment of this application, the first gesture operation may alternatively be another gesture operation or a button function, for example, a gesture operation of touching a bottom of the screen of the electronic deviceand sliding up, or an operation of two-finger sliding down, or a tapping operation by using one or more knuckles.
603 100 200 200 605 200 604 S: The electronic devicedetermines whether an external electronic deviceexists, and if the external electronic deviceexists, Sis performed, or if the external electronic devicedoes not exist, Sis performed.
100 200 100 200 100 100 200 100 100 200 100 200 100 200 100 200 100 200 200 100 100 For example, the electronic devicemay determine, in the following manners, that there is an external electronic device: The electronic devicedetermines that an electronic devicethat is connected to the electronic deviceand that serves as an extended screen exists; or the electronic devicedetermines that an electronic devicethat is connected to the electronic devicein a wireless or wired manner exists. The extended screen herein refers to another screen that shares a host with the electronic device. When the electronic deviceand the electronic deviceare located in a same local area network, or when the electronic deviceand the electronic deviceare logged in with a same user account, it may be considered that the electronic deviceis connected to the electronic devicein a wireless manner. In other words, it is considered that the external electronic deviceexists. A plurality of extended screens may be connected to the electronic deviceat the same time, or a plurality of external electronic devicesmay exist at the same time. In this case, when identifying the external extended screen or the external electronic device, the electronic devicemay further identify a direction of the external device relative to the electronic device.
603 100 200 100 200 100 100 200 200 100 200 100 100 100 100 100 In another embodiment of this application, step Sis optional. Alternatively, the electronic devicemay directly respond to the first gesture operation without determining whether the external electronic deviceexists. For example, when the electronic devicedoes not have the external electronic device, the electronic devicetakes a screenshot of the first interface of the screen and stores the screenshot. If the electronic devicehas the external electronic device, an execution result of the first gesture operation is displayed on the electronic device. To be specific, the screenshot of the first interface of the screen of the electronic deviceand an application identifier corresponding to the application window included in the first interface are displayed on the electronic device. In addition, the electronic devicemay also display the screenshot of the first interface. Further, the electronic devicemay store the screenshot of the first interface. The screenshot of the first interface refers to a snapshot of the first interface. The screenshot is a picture, and displayed content of the screenshot is the first interface. Generally, if the electronic devicedisplays the first interface in full screen, the screenshot of the first interface may be a screen snapshot taken when the electronic devicedisplays the first interface. In other words, the screenshot is content currently displayed on the screen of the electronic device.
604 100 S: The electronic devicedisplays a first execution result of the first gesture operation in response to the first gesture operation.
602 100 100 101 102 103 100 For example, when the first gesture operation is the three-finger vertical sliding down described in step S, an execution result corresponding to the gesture operation of three-finger vertical sliding down of the electronic devicemay be taking a screenshot of the first interface of the screen of the electronic device. The screenshot includes the application windows of the document application, the messages application, and the browserthat are displayed in the thumbnail manner on the screen of the electronic device.
100 200 100 100 1001 100 100 8 FIG.A 8 FIG.B When the electronic deviceis not connected to the electronic deviceor another electronic device, as shown inand, the electronic devicemay display, on the screen of the electronic device, the execution result of the first gesture operation, namely, a thumbnail of a screenshotof the first interface of the screen of the electronic device. The user may tap the thumbnail, to display the screenshot in full screen on the screen of the electronic device. The user may further edit the screenshot, and details are not described herein again.
603 200 604 605 100 100 100 200 It should be noted that, in another implementation, if it is determined in Sthat the external electronic deviceexists, Sand Smay be performed simultaneously. To be specific, in response to the first gesture operation, the electronic devicedisplays the screenshot of the first interface on the screen of the electronic device, and the electronic devicesends the screenshot of the first interface and the icon of the application corresponding to the application window included in the first interface to the electronic device.
605 100 200 S: The electronic devicesends a second execution result of the first gesture operation to the electronic devicein response to the first gesture operation.
100 200 100 200 100 200 100 200 It may be understood that, when the electronic devicedetermines that the external electronic deviceexists, the electronic devicesends the second execution result of the first gesture operation to the electronic device. The second execution result may include the screenshot of the first interface of the screen of the electronic deviceand the application identifier corresponding to the application window included in the first interface. In other words, when the external electronic deviceexists, the electronic devicemay send the screenshot of the first interface and the application identifier corresponding to the application window included in the first interface to the electronic device. The application identifier may be an application icon, or may be other information used to identify an application.
606 200 S: The electronic devicedisplays the screenshot of the first interface and the icon of the application corresponding to the application window included in the first interface.
9 FIG.A 9 FIG.B 9 FIG.A 9 FIG.B 200 2001 101 102 103 200 200 100 200 2001 2002 101 102 103 2002 101 102 103 101 102 103 2001 As shown inand, the electronic devicedisplays a screenshotof the first interface. The screenshot includes three windows: the document application, the messages application, and the browser. In addition, the electronic devicefurther displays, on the screen, an icon of an application corresponding to each application window included in the first interface. The electronic devicemay obtain, based on the application identifier sent by the electronic device, an application icon corresponding to the application identifier. For example, the electronic devicesequentially displays, above the screenshotof the first interface, iconscorresponding to the document application, the messages application, and the browser. In addition, specific locations of these application icons are not limited in embodiments of this application. For example, as shown inand, the iconscorresponding to the document application, the messages application, and the browsermay be aligned with the document application, the messages application, and the browserin the screenshot. Alternatively, in another embodiment, the icons may not be fully aligned with the windows in the screenshot.
100 200 200 100 100 200 100 200 200 100 200 100 100 200 Specifically, the application identifier may be actively sent by the electronic deviceto the electronic device, or may be obtained by the electronic devicefrom the electronic device. For example, the electronic devicecan learn of the application identifier corresponding to the currently opened application window. When sending the second execution result to the electronic devicein response to the first gesture operation, the electronic devicemay actively send the application identifier or the application icon to the electronic device. The application icon may alternatively be considered as an application identifier. Alternatively, the electronic devicemay obtain the application identifier from the electronic devicethrough the following process: The electronic deviceobtains, based on an application manager (for example, an ActivityManager of an Android system) of the electronic device, an application (for example, getRecentTasks) that currently runs on the electronic device. The electronic devicefurther obtains a name of the application that currently runs, and obtains an icon of the application based on the name.
9 FIG.A 9 FIG.B 200 200 101 102 103 200 2001 200 2000 2001 2000 2002 2002 101 102 103 Then, still as shown inand, the electronic devicedisplays the obtained icon of the application and the screenshot of the first interface on the screen of the electronic device. For example, for the document application, the messages application, and the browser, the electronic devicemay display the screenshotin an area of the screen, for example, a lower left side, a lower right side, an upper left side, an upper right side, a left side, a right side, an upper side, and a lower side of the screen of the electronic device. In addition, the electronic devicemay display, near the screenshot, an icon of an application included in the screenshot. For example, the electronic devicedisplays the icon above the screenshot, or displays the iconbelow, on a left side of, or on a right side of the screenshot. The iconsmay be sequentially displayed based on an order of the three windows of the document application, the messages application, and the browserin the screenshot.
607 200 S: The electronic devicereceives a second gesture operation.
200 200 The second gesture operation performed on the screen of the electronic devicemay include the following types: a gesture operation of tapping performed by the user on the screenshot of the first interface displayed by the electronic device, or a gesture operation of tapping performed by the user on the icon of the application displayed above the screenshot, or a gesture operation of dragging performed by the user on the icon of the application displayed above the screenshot, or a gesture operation performed by the user on an area other than the icon of the application and the screenshot.
200 200 100 100 200 It may be understood that, in another embodiment of this application, when the user performs the second gesture operation on the screen of the electronic device, the electronic devicemay send an instruction corresponding to the gesture operation to the electronic device. The electronic devicedisplays, on the screen of the electronic devicebased on the received instruction, an execution result corresponding to the instruction.
608 200 S: The electronic devicedisplays the execution result corresponding to the second gesture operation.
200 100 604 2001 200 100 200 2001 2002 2001 200 200 200 10 1 FIG.A- 10 2 FIG.A- 10 FIG.B Different second gesture operations correspond to different execution results. For example, the second gesture operation may be a gesture operation of tapping performed on the screenshot displayed on the electronic device. A corresponding execution result is that the electronic devicemay perform a method similar to that in step S. For example, as shown inand, the user performs a tapping operation on the screenshotin the electronic device. In response to the tapping operation, as shown in, the screenshot is displayed in full screen on the screen of the electronic device, and the user may further edit the screenshot. In addition, the electronic deviceno longer displays the screenshotand the icon. Alternatively, the user performs a tapping operation on the screenshotin the electronic device. In response to the tapping operation, the screenshot may be displayed in full screen on the screen of the electronic device, so that the user can perform an operation such as editing or saving the screenshot in the electronic device.
100 200 100 100 200 200 2002 101 102 103 2001 101 2002 200 200 100 100 101 200 11 1 FIG.A- 11 2 FIG.A- 11 FIG.B For example, the second gesture operation may be a gesture operation of tapping performed on the icon corresponding to the application identifier sent by the electronic device. A corresponding execution result is that the electronic deviceopens the application corresponding to the icon and displays a window of the application, and the electronic deviceremoves the window of the application from the screen. In other words, the user moves the application from the screen of the electronic deviceto the screen of the electronic devicefor display by performing the tapping operation on the icon of the application. When the application is moved to the electronic devicefor display, full-screen display may be performed, or non-full-screen display may be performed. For example, as shown inand, iconscorresponding to the document application, the messages application, and the browsermay be displayed on an upper side of the screenshot. The user performs a tapping operation on an icon of the document applicationin the icondisplayed on the screen of the electronic device. The electronic devicesends an instruction of the tapping operation to the electronic device. The instruction of the tapping operation may include an application name corresponding to the icon tapped by the user and a type of the tapping operation. In response to the instruction of the tapping operation, as shown in, the electronic devicemoves the application window of the document applicationto the screen of the electronic devicefor display.
100 200 200 100 100 200 101 2002 200 200 200 100 100 101 200 100 102 103 12 1 FIG.A- 12 2 FIG.A- 12 FIG.B 12 FIG.B For example, the second gesture operation may further be a gesture operation of dragging performed on the icon corresponding to the application identifier sent by the electronic device. A corresponding execution result is that the electronic devicemay open, in a left split screen, a right split screen, or a full screen manner, the application corresponding to the icon and display a window of the application on the screen of the electronic devicebased on a final location of the icon of the application after the dragging operation is performed on the icon of the application. At the same time, the electronic deviceremoves the window of the application from the screen. In other words, the user may perform the dragging operation on the icon of the application to move the application from the screen of the electronic deviceto the screen of the electronic devicefor display, and may determine a display manner of the application based on the final location of the icon of the application. For example, as shown inand, the user touches and holds the icon of the document applicationin the icondisplayed on the screen of the electronic device, drags the icon to the left side of the screen of the electronic device, and releases the icon. In this case, as shown in, the electronic devicesends the instruction of the dragging operation to the electronic device. The instruction of the dragging operation may include a location at which the user drags and releases the icon, an application name corresponding to the icon, and a type of the drag operation. In response to the instruction of the tapping operation, as shown in, the electronic devicemoves the application window of the document applicationto the left split screen of the screen of the electronic devicefor display. In this case, the screen of the electronic devicedisplays a second interface, and the second interface includes the application windows of the messages applicationand the browser.
200 200 200 100 200 200 200 200 200 200 200 13 FIG. 13 FIG. In this embodiment of this application, the display manner of the application on the screen of the electronic devicemay be determined based on the final location that the user drags and releases the icon of the application by using the following method. For example, as shown in, the electronic devicemay split the screen of the electronic deviceinto three response areas: a left-split-screen response area, a right-split-screen response area, and a full-screen response area. The left-split-screen response area, the right-split-screen response area, and the full-screen response area respectively correspond to a left split screen display manner, a right split screen display manner, and a full screen display manner. The electronic devicemay detect, in real time through the communication connection to the electronic device, which area of the screen of the electronic devicethat the final location that the user drags and releases the icon of the application falls, and further determine a display manner of the application on the screen of the electronic device. A method for dividing the left-split-screen response area and the right-split-screen response area by the electronic devicemay be as follows: The left-split-screen response area corresponds to a left half screen of the screen of the electronic device, and the right-split-screen response area corresponds to a right half screen. For the full-screen response area, the electronic devicemay divide an area formed by 100 pixels vertically downward on an upper edge of the screen of the electronic deviceinto the full-screen response area. In embodiments of this application, it can be learned fromthat, an area in which the left-split-screen response area and the right-split-screen response area overlap with the full-screen response area is the full-screen response area overlap.
It may be understood that the 100 pixels herein are merely an example, and any other numerical value may also be used.
200 200 200 100 200 In another embodiment of this application, the electronic devicemay alternatively detect, in real time, which area of the screen of the electronic devicethat the final location that the user drags and releases the icon of the application falls, and further determine a display manner of the application window on the screen of the electronic device. After receiving the application window sent by the electronic device, the electronic devicedisplays the application window in the determined display manner.
200 200 100 2001 2002 200 100 2001 2002 200 100 100 100 100 14 1 FIG.A- 14 2 FIG.A- 14 FIG.B It may be understood that, when the user performs a gesture operation on the area other than the icon of the application and the screenshot, the electronic devicemay delete the screenshot of the current application and the icon of the application from the screen of the electronic device. At the same time, the screen of the electronic deviceprompts that the screenshot is saved, and a storage location of the screenshot may also be displayed. For example, as shown inand, the user performs a tapping operation in an area other than the screenshotand the iconon the screen of the electronic device. In this case, as shown in, the electronic devicemay delete the screenshotand the iconon the screen of the electronic device. In addition, the screen of the electronic deviceprompts that the screenshot of the current screen of the electronic deviceis saved. In other words, the electronic devicecompletes the operation of taking a screenshot of the current screen of the electronic devicein response to the instruction of the gesture operation of three-finger sliding down.
601 608 100 6 FIG. In steps Sto Sdescribed in, the electronic devicemay be communicatively connected to one or more other electronic devices through a wired connection, for example, a USB (Universal Serial BUS, universal serial bus) connection, or a wireless connection, for example, a WI-FI (Wireless Fidelity, wireless fidelity) connection or a Bluetooth connection.
15 FIG.A 15 FIG.B 100 200 100 200 100 200 100 200 200 100 200 100 200 200 100 200 200 100 For example, as shown in, a method for establishing a communication connection between the electronic deviceand the electronic deviceincludes: The electronic devicefinds an electronic deviceconnected to the electronic devicein a wired or wireless manner, for example, a tablet computer. The electronic devicesends a communication connection request to the electronic device. The electronic deviceprompts whether to agree to establish the communication connection. After a user clicks to confirm the establishment, as shown in, the screen of the electronic devicemay prompt a location of the screen of the electronic devicerelative to the screen of the electronic device, and the user may choose to set the screen of the electronic devicebelow the screen of the electronic device. It may be understood that the electronic devicemay further establish an extended display connection to the electronic device, and the screen of the electronic devicemay be configured as an extended screen of the screen of the electronic device.
100 200 100 100 200 100 100 200 100 200 200 100 It may be understood that, in another embodiment of this application, the electronic devicemay automatically determine the location of the screen of the electronic devicerelative to the screen of the electronic devicebased on a spatial location relationship between the electronic deviceand the electronic device, and the user does not need to select. For example, the electronic devicemay determine the spatial location relationship between the electronic deviceand the electronic devicebased on a direction of a Wi-Fi signal between the electronic deviceand the electronic deviceor a UWB (Ultra WideBand, ultra wideband) positioning technology, and then further determine the location of the screen of the electronic devicerelative to the screen of the electronic device.
100 100 200 100 100 100 200 100 100 In another embodiment of this application, the electronic devicemay further determine, based on a default configuration of an operating system of the electronic device, the location of the screen of the electronic devicethat is communicatively connected to the electronic devicerelative to the screen of the electronic device. For example, the operating system of the electronic devicesets, by default, the screen of the electronic devicethat is communicatively connected to the electronic deviceon a right side of the screen of the electronic device.
601 608 100 200 100 100 110 100 100 100 6 FIG. 16 FIG. 16 FIG. 16 FIG. 16 FIG. Steps Sto Sdescribed inshow a cross-screen display method for moving a window of an application from the electronic deviceto a screen of the electronic deviceby performing a first gesture operation on the electronic deviceand performing a second gesture operation on an execution result of the first gesture operation. The following describes in detail another display method of an application of the electronic deviceaccording to an embodiment of this application by using. The display solution of the application inin this embodiment of this application may be implemented by executing a related program by the processorof the electronic device. In, based on an execution result of a supported gesture operation, such as a three-finger sliding operation, the electronic deviceadds a determining condition or a subsequent gesture operation to implement sharing of the window of the application with another electronic device connected to the electronic device. The electronic device described inmay be a tablet computer, a vehicle-mounted machine, and a mobile phone.
16 FIG. Specifically, as shown in, the display method of the application includes the following steps.
1601 100 S: An electronic devicedisplays a first interface, where the first interface includes one or more application windows, and each application window corresponds to one application.
1601 601 101 102 103 100 100 101 102 103 Step Smay be the same as step S. A user may start a document application, a messages application, and a browseron the electronic device. The electronic devicedisplays the first interface, where the first interface includes application windows of the document application, the messages application, and the browserthat are displayed in a thumbnail manner.
1602 100 S: The electronic devicereceives a first gesture operation.
1602 602 100 100 Step Smay be the same as step S. For example, in this embodiment of this application, the first gesture operation herein may be a gesture operation of three-finger sliding. An execution result corresponding to the gesture operation of three-finger sliding may be taking a screenshot of the first interface of the screen of the electronic device, and displaying the screenshot on the screen of the electronic device.
1603 100 S: The electronic devicedisplays a first execution result of the first gesture operation in response to the first gesture operation.
1603 604 1602 100 100 100 101 102 103 101 102 103 607 1001 101 102 103 100 1002 101 102 103 1001 101 102 103 17 FIG.A 17 FIG.B 17 FIG.A 17 FIG.B Step Sis similar to step S. For example, when the first gesture operation is the three-finger vertical sliding down described in step S, as shown inand, an execution result corresponding to the gesture operation of three-finger vertical sliding down of the electronic devicemay be: The electronic deviceobtains the screenshot of the first interface of the electronic devicethat includes the current document application, the messages application, and the browser, and obtains icons corresponding to the document application, the messages application, and the browser. A difference from step Slies in that a screenshotof the document application, the messages application, and the browseris displayed on the screen of the electronic device, and iconscorresponding to the document application, the messages application, and the browserare displayed in a display area above the screenshot. As shown inand, the icons corresponding to the document application, the messages application, and the browsermay be attached with a sharing mark.
1604 100 S: The electronic devicereceives a second gesture operation, and displays an execution result of the second gesture operation.
100 101 102 103 1002 100 100 100 300 100 400 103 100 1003 300 400 17 FIG.A 17 FIG.B 18 FIG.A 18 FIG.B The second gesture operation is a gesture operation of tapping performed on the icon of the application displayed on the electronic device. That is, a tapping operation is performed on the icons of the document application, the messages application, and the browserin the iconinand. An execution result corresponding to the second gesture operation may be that the electronic devicedisplays a sending object list on the screen. The sending object list may include another electronic device that establishes a connection to the electronic device. As shown inand, Wi-Fi connections are established between the electronic deviceand an electronic deviceand between the electronic deviceand an electronic device. In this case, after the user taps the icon of the browser, the screen of the electronic devicedisplays a windowthat includes two options: the electronic deviceand the electronic device.
1605 100 S: The electronic deviceobtains a third gesture operation, and sends an execution result of the third gesture operation.
100 300 400 100 100 1604 103 100 1604 400 1003 300 400 100 400 103 100 18 FIG.A 18 FIG.B 18 FIG.A 18 FIG.B 19 FIG.A 19 FIG.B The third gesture operation may be a gesture operation of tapping performed on a sending object in the sending object list displayed on the screen of the electronic deviceshown inand. For example, in the window in which the electronic deviceand the electronic deviceare displayed on the screen of the electronic deviceshown inand, one of the two options is tapped as the sending object. An execution result corresponding to the third gesture operation may be: The electronic devicemay send the second gesture operation in step S, that is, display content of the application corresponding to the icon on which the tapping operation is performed, to the sending object for display. For example, the user performs a gesture operation of tapping on the icon of the browseron the screen of the electronic devicein step S, and after the user taps the option of the electronic devicein the windowthat includes the two options of the electronic deviceand the electronic deviceon the screen of the electronic device, that is, in the sending object list, as shown inand, the electronic devicestarts the browser application to display content displayed by the browserof the electronic device.
15 FIG.A 15 FIG.B 100 200 200 200 100 100 100 It may be understood that, in the scenario shown inandin embodiments of this application, the electronic deviceis connected only to the electronic device, for example, the tablet computer, and a location of the screen of the electronic deviceis set directly below the screen of the electronic device. However, in another embodiment of this application, the electronic devicemay be connected to any quantity of electronic devices. In other words, the electronic devicemay be connected to screens of any quantity of electronic devices, for example, two screens, four screens, or eight screens. This is not limited herein.
20 FIG. 20 FIG. 20 FIG. 6 FIG. 21 FIG.A 21 FIG.C 100 1101 1102 100 100 100 1101 1102 601 609 1101 1102 100 100 100 100 100 100 11011 1101 100 100 11012 11011 101 102 103 shows a scenario in which an electronic deviceis connected to screens of two electronic devices. As shown in, a user sets a screen of an electronic deviceand a screen of an electronic deviceat a lower left side and a lower right side of a screen of the electronic device. In the scenario in, based on a gesture operation already supported by the electronic device, a method for moving a window of an application from the electronic deviceto the electronic deviceor the electronic devicemay be similar to steps Sto Sdescribed in. That the gesture operation is three-finger sliding is used as an example. A difference lies in that a gesture direction of the three-finger sliding may correspond to a direction between the electronic deviceand the electronic deviceand the screen of the electronic device, for example, three-finger sliding lower right and three-finger sliding lower left. In addition, the electronic devicemay display the execution result of the three-finger sliding, that is, the screenshot of the screen of the electronic deviceand the application icon included in the screenshot, in a display area close to a screen side of the electronic deviceon a screen of the electronic device in the gesture direction of the three-finger sliding. As shown into, after the user performs the gesture operation of three-finger sliding lower left on the screen of the electronic device, the electronic devicedisplays a screenshoton an upper right side of the screen of the electronic device, that is, a location close to the screen of the electronic device. The electronic devicedisplays an iconabove the screenshot, and sequentially displays the icons based on an order of the document application, the messages application, and the browser.
100 100 100 100 100 200 200 100 100 100 100 2001 100 2002 2001 200 2001 2002 100 22 FIG.A 22 FIG.B It may be understood that, in another embodiment of this application, for example, a gesture operation supported by the electronic deviceis three-finger sliding. If the electronic devicedetects that no electronic device connected to the electronic deviceexists in the gesture direction of the three-finger sliding, the electronic devicemay choose to display the execution result of the gesture operation and the application identifier included in the execution result on a screen of an electronic device that is close to the gesture direction, so that the execution result and the application identifier included in the execution result are consistent with the gesture direction. For example, as shown inand, the electronic deviceis connected to the electronic devicein an extended manner. The electronic deviceis located directly below the electronic device, and the three-finger sliding performed by the user on the electronic deviceis three-finger sliding lower left. When the electronic devicedetermines that there is no electronic device in a lower left location, the electronic devicemay display the screenshotof the screen of the electronic deviceand the iconof the application included in the screenshoton the screen of the electronic device. In addition, the screenshotand the iconmay be located on a lower left side of the screen of the electronic device.
23 FIG. is a flowchart of another human-computer interaction method of an electronic device according to an embodiment of this application. The method is applied to an electronic device having two screens. The electronic device includes a first screen and a second screen.
701 S: The first screen of the electronic device displays a first interface, where the first interface includes one or more application windows, and each application window corresponds to one application.
702 S: The first screen receives a first gesture operation, that is, the electronic device receives the first gesture operation performed on the first screen.
703 S: In response to the first gesture operation, the electronic device controls the second screen to display a screenshot of the first interface and an icon of an application corresponding to an application window included in the first interface.
704 S: The second screen receives a second gesture operation, that is, the electronic device receives the second gesture operation performed on the second screen.
705 S: In response to the second gesture operation, the electronic device controls display of the second screen. Based on different second gesture operations, the electronic device controls the second screen to perform different display.
For example, if the second gesture operation is a gesture operation of tapping performed on a screenshot displayed on the second screen, the electronic device controls the second screen or the first screen to display the screenshot in full screen, and then a user can perform an operation on the screenshot, or after a preset time, the electronic device automatically saves the screenshot.
If the second gesture operation is a gesture operation of tapping a first icon displayed on the second screen, the electronic device opens, on the second screen, an application corresponding to the first icon and displays a window of the application. For example, the application window may be displayed in full screen, or may be displayed in non-full screen. Content of the application window displayed on the second screen is the same as that of the application window previously displayed on the first screen. That is, migration of the application window from the first screen to the second screen is implemented based on the second operation.
If the second gesture operation is a gesture operation of dragging performed on the first icon displayed on the second screen, the electronic device opens, on the second screen, an application corresponding to the first icon, and displays a window of the application at different locations based on a dragging direction. For example, if the user drags the first icon on the second screen to the left of the screen, the electronic device may display, on a left split screen of the second screen, the application window corresponding to the first icon. If the user drags the first icon on the second screen to the right of the screen, the electronic device may display, on a right split screen of the second screen, the application window corresponding to the first icon. The dragging operation may be holding an icon and dragging the icon on the screen, or may be sliding on the screen after the icon is selected, but the icon may not be dragged.
In addition, for related content in this embodiment of this application, refer to the descriptions in the foregoing embodiments.
It should be understood that although terms such as “first” and “second” may be used herein to describe various features, these features should not be limited by these terms. These terms are merely used for distinction, and shall not be understood as an indication or implication of relative importance. For example, without departing from the scope of the example embodiments, a first feature may be referred to as a second feature, and similarly the second feature may be referred to as the first feature.
Furthermore, various operations will be described as a plurality of separate operations in a manner that is most conducive to understanding illustrative embodiments. However, a described sequence should not be construed as implying that these operations need to depend on the described sequence. A plurality of these operations may be performed in parallel, concurrently, or simultaneously. In addition, the sequence of the operations may be further rearranged. The processing may be terminated when the described operations are completed, but may also have additional operations not included in the figures. The processing may correspond to a method, a function, a procedure, a subroutine, a subprogram, or the like.
References to “an embodiment”, “embodiments”, “an illustrative embodiment”, and the like in the specification indicate that the described embodiment may include a specific feature, structure, or property, but each embodiment may or may not necessarily include the specific feature, structure, or property. In addition, these phrases are not necessarily intended for a same embodiment. In addition, when specific features are described with reference to specific embodiments, knowledge of a person skilled in the art can affect combination of these features with other embodiments, regardless of whether these embodiments are explicitly described.
Unless otherwise stated, terms “contain”, “have”, and “include” are synonymous. A phrase “A/B” indicates “A or B”. The phrase “A and/or B” indicates “(A), (B), or (A and B)”.
As used herein, the term “module” may refer to being a part thereof, or include a memory (a shared memory, a dedicated memory, or a group memory) for running one or more software or firmware programs, an application-specific integrated circuit (ASIC), an electronic circuit and/or a processor (a shared processor, a dedicated processor, or a group processor), a combined logic circuit, and/or another proper component that provides the function.
In the accompanying drawings, some structure or method features may be shown in a specific arrangement and/or order. However, it should be understood that such a specific arrangement and/or order is not required. In some embodiments, these features may be described in a manner and/or order different from that shown in the descriptive accompanying drawings. In addition, structure or method features included in a specific accompanying drawing do not mean that all embodiments need to include such features. In some embodiments, these features may not be included, or these features may be combined with other features.
Embodiments of this application are described above in detail with reference to the accompanying drawings. However, use of the technical solutions of embodiments of this application is not limited to various applications mentioned in embodiments of this application, and various structures and variations may be easily implemented with reference to the technical solutions of embodiments of this application, to achieve various beneficial effects mentioned in this specification. Without departing from the purpose of embodiments of this application, any variation made within the scope of knowledge possessed by a person of ordinary skill in the art shall fall within the scope of embodiments of this application.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
August 17, 2022
June 9, 2026
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.