Desktop application processing method and electronic device

By keeping the display status of the desktop application to the screen in the horizontal screen state of the terminal device, the desktop reloading problem caused by horizontal and vertical screen switching is solved, and the performance and user experience of the terminal device are improved.

CN116737291BActive Publication Date: 2025-02-25HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211330016.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2025-02-25
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

When entering or exiting the multitasking interface in the horizontal screen state of the terminal device, the display status of the desktop application is frequently switched, resulting in reloading of the desktop, affecting performance and user experience.

Method used

When entering or exiting the multitasking interface in the horizontal screen state of the terminal device, keep the display status of the desktop application always in the vertical screen state, avoid horizontal and vertical screen switching, and thus reduce the situation of reloading the desktop.

Benefits of technology

By keeping the display status of the desktop application to a vertical screen, horizontal and vertical screen switching is reduced, and the performance and user experience of terminal devices are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116737291B_ABST
    Figure CN116737291B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a method for processing desktop applications and an electronic device. The method includes: the terminal device displays a first interface; the terminal device is in a horizontal screen state, and the first interface displays a first application running on the terminal device; the terminal device receives a first operation from the user; in response to the first operation, the terminal device displays a second interface; the second interface displays a first task card corresponding to the first application, and the first task card is in a horizontal screen state; the terminal device receives a second operation from the user; in response to the second operation, the terminal device displays a third interface; the terminal device is in a vertical screen state when displaying the third interface; wherein the terminal device keeps the display state of the desktop application in a vertical screen state during the process of displaying the second interface and switching the second interface to the third interface. In this way, when the terminal enters or exits the multi-tasking interface in a horizontal screen, the desktop application remains in a vertical screen, reducing the situation of reloading the desktop layout and data, and improving the performance of the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a processing method and electronic device for desktop applications. Background Art

[0002] With the development of the terminal technology field, terminal devices can provide more and more functions. When using a terminal device, a user can start multiple tasks at the same time in a terminal device, where the task can be an application. For example, the terminal device can simultaneously meet the user's needs for listening to music, chatting with social software, and surfing the Internet based on the corresponding application. After the terminal device starts multiple tasks, it can switch between multiple tasks through the multi-task interface. For example, the multi-task interface displays the most recently used task card. When the user triggers the task card, the terminal device can quickly switch to the new task.

[0003] In a possible implementation, the terminal device can display tasks in the horizontal screen state. For example, the terminal device can play a video in the horizontal screen. At this time, the terminal device can enter the multitasking interface based on the user's swipe up operation. The multitasking interface is a horizontal screen interface. When the terminal device exits the multitasking interface in the horizontal screen, the terminal device can display the desktop (also called the main interface). However, in some cases, during the process of exiting the multitasking interface, the terminal device will display the process of reloading the desktop, which affects the performance of the terminal device and reduces the user experience. Summary of the invention

[0004] The embodiments of the present application provide a method for processing a desktop application and an electronic device, which are applied to the field of terminal technology. When the terminal device enters or exits a multitasking interface in the horizontal screen state, the display state of the desktop application always remains in the vertical screen state, thereby reducing the situation where the desktop application reloads the desktop due to switching between the horizontal and vertical screens, thereby improving the performance of the terminal device.

[0005] In the first aspect, the embodiment of the present application proposes a method for processing desktop applications. The method includes: the terminal device displays a first interface; wherein the terminal device is in a horizontal screen state, and the first interface displays a first application running on the terminal device; the first application is an application that supports horizontal screen display; the terminal device receives a first operation from the user; in response to the first operation, the terminal device displays a second interface; wherein the second interface displays a first task card corresponding to the first application, and the first task card is in a horizontal screen state; the terminal device receives a second operation from the user; in response to the second operation, the terminal device displays a third interface; wherein the terminal device is in a vertical screen state when displaying the third interface; wherein the terminal device displays the second interface and switches the second interface to the third interface, the display state of the desktop application is kept in a vertical screen state. In this way, in the process of the terminal device entering the multitasking interface in a horizontal screen until exiting the multitasking interface, the display state of the desktop application remains in a vertical screen, reducing the horizontal and vertical screen switching of the desktop application, thereby improving the performance of the terminal device.

[0006] The first interface may be an interface of an application program running in a horizontal screen state. For example, the first interface may correspond to Figure 4 The first application may correspond to the interface shown in a in Figure 4 The second interface may be a multi-tasking interface displayed in a horizontal screen state, for example, the second interface may correspond to Figure 4 The first task card may correspond to the interface shown in b; Figure 4 The video task card in the interface shown in b; the third interface can be a desktop, for example, the third interface can correspond to Figure 4 Alternatively, the first interface may correspond to Figure 6 The first application may correspond to the interface shown in a in Figure 6 The video application in the interface shown in a; the second interface may correspond to Figure 6 The first task card may correspond to the interface shown in b; Figure 6 The video task card in the interface shown in b; the third interface may correspond to Figure 6 The interface shown in c.

[0007] In a possible implementation, the second interface includes a status bar; the status bar is in a vertical screen state. In this way, after the terminal device enters the multitasking interface in the horizontal screen state, the terminal device can display the status bar in the vertical screen state.

[0008] Among them, the second interface can correspond to Figure 5 In the interface shown in c, the status bar in the vertical screen state can be Figure 5 As shown in the c interface.

[0009] In a possible implementation, the second interface does not include a status bar; after the terminal device displays the second interface, the following further includes: the terminal device receives a third operation of the user in the second interface; the third operation includes a trigger operation of sliding from the left side of the display screen to the right; in response to the third operation, the terminal device displays a fourth interface, wherein the fourth interface displays a first task card and a status bar, and the status bar is in a vertical screen state. In this way, after the terminal device enters the multitasking interface in the horizontal screen state, the terminal device can display a status bar in a vertical screen state based on the third operation.

[0010] The third operation may be a trigger operation of sliding from the left side of the display screen to the right side, and the third operation may correspond to the user Figure 5 The fourth interface is a multi-tasking interface with a status bar. The fourth interface can correspond to Figure 5 The interface shown in c.

[0011] In a possible implementation, the first task card is a task card drawn by the desktop application based on the converted coordinates, where the converted coordinates are coordinates converted from the vertical screen coordinate system to the horizontal screen coordinate system. In this way, the terminal device can obtain the coordinates converted from the vertical screen coordinate system to the horizontal screen coordinate system, and the converted coordinates can be used by the terminal device to draw the first task card.

[0012] In a possible implementation, the vertex coordinates of the first task card in the vertical screen coordinate system are the first coordinates (x1, y1), and the converted coordinates of the first task card include: the second coordinates (y1, x1+a), the third coordinates (y1, x1), the fourth coordinates (y1+b, x1+a), and the fifth coordinates (y1+b, x1); wherein the second coordinates are the vertex coordinates of the first task card in the horizontal screen coordinate system, and the third coordinates, the fourth coordinates, and the fifth coordinates are the coordinates of the other three points of the first task card in the horizontal screen coordinate system; x1 is the horizontal coordinate of the vertex coordinates of the first task card in the vertical screen coordinate system, y1 is the vertical coordinate of the vertex coordinates of the first task card in the vertical screen coordinate system, a is the length of the first side of the first task card, and b is the length of the second side of the first task card, wherein the length of the first side is less than the length of the second side. In this way, the terminal device can draw the first task card based on the converted coordinates.

[0013] In a possible implementation, the second interface also includes a second task card, which is a task card that matches the application running in the background of the terminal device; the second task card is: a task card drawn by the desktop application based on the converted coordinates; the method includes: the terminal device receives a fourth operation of the user on the second interface; the fourth operation includes a left swipe operation or a right swipe operation; in response to the fourth operation, the terminal device controls the first task card and the second task card to move along the sliding direction of the fourth operation. In this way, the situation that the terminal device does not switch the desktop application between horizontal and vertical screens will not affect the way the user browses the task card, thereby improving the user's experience.

[0014] Among them, the second interface can correspond to Figure 8 In the interface shown in a, the first task card can correspond to Figure 8 The video task card in the interface shown in a in FIG. 1 corresponds to the second task card Figure 8 The fourth operation may be a calendar task card in the interface shown in b; Figure 8 The operation of sliding left or right in the interface shown in a.

[0015] In a possible implementation, the converted coordinates of the second task card include: the sixth coordinate (y1+b+c, x1+a), the seventh coordinate (y1+b+c, x1), the eighth coordinate (y1+2b+c, x1+a) and the ninth coordinate (y1+2b+c, x1); wherein c is the distance between the first task card and the second task card. In this way, the terminal device can draw the second task card based on the converted coordinates.

[0016] In a possible implementation, a desktop application includes: a gesture manager, a desktop state manager, and a multitasking view manager. In response to a first operation, a terminal device displays a second interface, including: in response to the first operation, the gesture manager reports a first instruction to the desktop state manager, the first instruction is used to instruct the terminal device to enter the multitasking interface; when the desktop state manager obtains the first instruction, the second instruction in the desktop state manager is deleted, and the process of switching the display state of the desktop application from the portrait state to the landscape state is not executed; the second instruction is used to instruct the display state of the desktop application to switch from the portrait state to the landscape state; the desktop state manager reports a third instruction to the multitasking view manager; the third instruction is used to instruct the multitasking view manager to draw a task card in the portrait state or the landscape state; the multitasking view manager draws a task card in the landscape state according to the third instruction, the first information, and the converted coordinates, and displays the second interface; the first information is information used to indicate that the terminal device is in the landscape state. In this way, when the terminal device enters the multitasking interface in the landscape state, the display state of the desktop application can be kept in the portrait state, and at the same time, the user can adjust the position of the task card based on left and right sliding, thereby improving the performance of the terminal device without affecting the user experience.

[0017] In a possible implementation, the multitasking view manager draws a task card in the horizontal screen state according to the third instruction, the first information and the converted coordinates, including: when the multitasking view manager receives the third instruction, the multitasking view manager obtains the first information reported by the sensor driver based on the first interface; the first interface is used to obtain the horizontal and vertical screen states of the terminal device; the multitasking view manager performs coordinate conversion on the task card to obtain the converted coordinates; the multitasking view manager draws the task card in the horizontal screen state according to the converted coordinates. In this way, the terminal device can obtain the converted coordinates and draw multiple task cards based on the converted coordinates.

[0018] In a possible implementation, the desktop application includes a launcher; the gesture manager includes OverviewCommandHelper; the desktop state manager includes LauncherStateManager; and the multitasking view manager includes RecentsView.

[0019] In a possible implementation, in response to the second operation, the terminal device displays the third interface, including: in response to the second operation, the gesture manager of the terminal device reports a fourth instruction to the desktop state manager, the fourth instruction is used to instruct the terminal device to exit the multi-tasking interface; when the desktop state manager obtains the fourth instruction, the fifth instruction in the desktop state manager is deleted, and the process of switching the display state of the desktop application from the horizontal screen state to the vertical screen state is not executed; the fifth instruction is used to instruct the display state of the desktop application to switch from the horizontal screen state to the vertical screen state; the desktop application obtains the sixth instruction reported by the desktop state manager, and the desktop application displays the third interface; wherein the sixth instruction is used to instruct the desktop application to draw and display the desktop. In this way, when the terminal device exits the multi-tasking interface in the horizontal screen state, the display state of the desktop application can be kept in the vertical screen state, thereby improving the performance of the terminal device.

[0020] In a possible implementation, the first operation is a trigger operation of sliding up from the bottom of the display screen and holding; or the first operation is a trigger operation of a first button in the first interface; wherein the first button is used to instruct the terminal device to enter the multitasking interface. In this way, the terminal device can enter the second interface based on the first operation.

[0021] The first operation may correspond to Figure 4 The first operation may correspond to the operation of sliding up from the bottom of the screen and holding in the interface shown in a; or the first operation may correspond to the operation of sliding up from the bottom of the screen and holding in Figure 6 The triggering operation of the navigation key 601 in the interface shown in a.

[0022] In a possible implementation, the second interface includes a second button, the second button is used to instruct the terminal device to delete the task card in the second interface, and the second operation is a trigger operation for the second button; or, the second operation is a trigger operation for a blank area in the second interface; or, the second interface includes a third button, the third button is used to instruct the terminal device to return to the main interface, and the second operation is a trigger operation for the third button. In this way, the terminal device can enter the third interface based on the second operation.

[0023] The second button may correspond to Figure 4 The delete button 401 in the interface shown in b in the second operation is Figure 4 The trigger operation for the delete button 401 in the interface shown in b in FIG. Figure 4 The trigger operation of the blank area in the interface shown in b in FIG. The third button may correspond to Figure 6 The navigation key 602 in the interface shown in b in FIG. Figure 6 The trigger operation for the navigation key 602 in the interface shown in b.

[0024] In a second aspect, an embodiment of the present application provides a terminal device, which may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc.

[0025] The terminal device comprises: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the method of the first aspect.

[0026] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method of the first aspect is implemented.

[0027] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the method of the first aspect.

[0028] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute the method shown in the first aspect.

[0029] It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A schematic diagram of an interface of a processing method for a desktop application in a possible implementation;

[0031] Figure 2A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0032] Figure 3 A schematic diagram of the software structure of a terminal device provided in an embodiment of the present application;

[0033] Figure 4 A schematic diagram of an interface of a method for processing a desktop application provided in an embodiment of the present application;

[0034] Figure 5 A schematic diagram of an interface of a method for processing a desktop application provided in an embodiment of the present application;

[0035] Figure 6 A schematic diagram of an interface of a method for processing a desktop application provided in an embodiment of the present application;

[0036] Figure 7 A schematic diagram of an interface of a method for processing a desktop application provided in an embodiment of the present application;

[0037] Figure 8 A schematic diagram of an interface of a method for processing a desktop application provided in an embodiment of the present application;

[0038] Fig. 9 A flowchart of a method for processing a desktop application provided in an embodiment of the present application;

[0039] Fig.10 A schematic diagram of the coordinate conversion process of a task card provided in an embodiment of the present application;

[0040] Fig.11 A flowchart of a method for processing a desktop application provided in an embodiment of the present application;

[0041] Fig.12 A flowchart of a method for processing a desktop application provided in an embodiment of the present application;

[0042] Fig.13 A schematic diagram of the structure of a desktop application processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to clearly describe the technical solutions of the embodiments of the present application, some terms and technologies involved in the embodiments of the present application are briefly introduced below:

[0044] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0045] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0046] It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the display interface provided in the embodiment of the present application is only an example, and the display interface can also include more or less content.

[0047] With the development of the terminal technology field, terminal devices can provide more and more functions. When using a terminal device, a user can start multiple tasks at the same time in a terminal device, where the task can be an application. For example, the terminal device can simultaneously meet the user's needs for listening to music, chatting with social software, and surfing the Internet based on the corresponding application. After the terminal device starts multiple tasks, it can switch between multiple tasks through the multi-task interface. For example, the multi-task interface displays the most recently used task card. When the user triggers the task card, the terminal device can quickly switch to the new task.

[0048] In a possible implementation, the terminal device can perform tasks in the horizontal screen state, for example, the terminal device can play a video in the horizontal screen. At this time, the terminal device can enter the multitasking interface based on the user's swipe up operation, and the multitasking interface is a horizontal screen interface. When the terminal device exits the multitasking interface in the horizontal screen, the terminal device can display the desktop. However, in some cases, during the process of exiting the multitasking interface, the terminal device will display the process of reloading the desktop, which affects the performance of the terminal device and reduces the user experience.

[0049] For example, Figure 1 A possible implementation method for processing a desktop application is shown, such as Figure 1 As shown:

[0050] It should be noted that the terminal device can be in a landscape state and a portrait state. Among them, the portrait state can be understood as the state that the terminal device is usually in, and can be a direction defined by the terminal manufacturer. Taking the terminal device as a mobile phone as an example, when the first side of the mobile phone is in a horizontal state and the second side of the mobile phone is in a vertical state, the terminal device is in a portrait state, and the length of the first side is less than the length of the second side. The landscape state can be understood as the state of the terminal device after the terminal device in the portrait state is rotated 90°. Taking the terminal device as a mobile phone as an example, when the first side of the mobile phone is in a vertical state and the second side of the mobile phone is in a horizontal state, the terminal device is in a landscape state. In the embodiment of the present application, the shorter side of the terminal device is defined as the first side, and the longer side is defined as the second side, and the embodiments of the present application will not be repeated later.

[0051] like Figure 1 As shown in the a interface in the figure, the terminal device can start the video application, and the terminal device performs the video task in the horizontal screen state. When the terminal device receives the trigger operation of the user sliding up from the bottom of the screen and holding the screen, the terminal device can enter the following Figure 1 The interface shown in b.

[0052] The multitasking interface can be Figure 1 In the interface shown in b in the figure, the multitasking interface displays the current task card and the recently launched task card. For example, before the terminal device launches the video application, the user also uses the terminal device to launch the calendar application. The multitasking interface can arrange the corresponding task cards in sequence according to the order in which the applications are launched. The multitasking interface can display the video task card and the calendar task card.

[0053] Figure 1 The interface shown in b in FIG. 1 also displays a delete button, which is used to clear all tasks in the multitasking interface. In some embodiments, when the terminal device receives a trigger operation for the delete button, the terminal device can exit the multitasking interface and return to the desktop, for example, the terminal device enters Figure 1 In some other embodiments, when the terminal device receives a trigger operation from the user on a blank area in the multitasking interface, the terminal device may also exit the multitasking interface and return to the desktop to enter the Figure 1 The interface shown in d.

[0054] In the terminal device Figure 1 Switch to the interface shown in b Figure 1 During the process of the interface shown in d, the terminal device can display Figure 1 The interface shown in c. Figure 1The scene of the interface shown in c in FIG. 1 can be understood as that after exiting the multitasking interface, when the terminal device loads the desktop, the desktop switches from the horizontal screen state to the vertical screen state.

[0055] The above process may affect the performance of the terminal device, because when the terminal device enters the multitasking interface in the horizontal screen state, the display state of the terminal device's desktop application (launcher) will switch from the vertical screen state to the horizontal screen state. The desktop application can be understood as an application used to display the desktop of the terminal device. The display state of the desktop application may include the horizontal screen state and the vertical screen state, wherein the display state of the desktop application may be inconsistent with the state of the terminal device.

[0056] It should be noted that when the terminal device enters the multitasking interface in the horizontal screen state, the launcher in the horizontal screen state can be run in the background. Figure 1 In the interface shown in a of FIG, the display state of the launcher is in the vertical screen state. When the terminal device receives a trigger operation of sliding up from the bottom of the screen and holding, the display state of the launcher can be switched to the horizontal screen state, as shown in FIG. Figure 1 The interface shown in b; Figure 1 In the interface shown in b in the figure, the terminal device can display multiple tasks on the display screen in sequence according to the time sequence of executing the application programs. At this time, since the display state of the launcher is in a horizontal state, the terminal device can adjust the task cards displayed on the multitasking interface based on the trigger operation of sliding left and right. For example, when the terminal device receives a trigger operation of sliding left, the multitasking interface can display the task card on the right. For example, the terminal device can display the complete calendar task card based on the trigger operation of sliding left. In some embodiments, Figure 1 In the interface shown in b in the figure, the multitasking interface can also display the status bar, where the status bar is close to the side of the second side of the terminal device, and the status bar is in the horizontal screen state. It can be seen that after the terminal device enters the multitasking interface in the horizontal screen state, the display state of the launcher can be switched to the horizontal screen state.

[0057] When the terminal device exits the multitasking interface in the horizontal screen state, the display state of the launcher will switch from the horizontal screen state to the vertical screen state; the process of switching the display state of the launcher from the horizontal screen state to the vertical screen state can be as follows: Figure 1 b interface to Figure 1 As shown in the interface d in the figure, the user can observe that the desktop of the terminal device has a counterclockwise rotation process from horizontal screen to vertical screen. When the launcher performs the horizontal and vertical screen switching, it will reload the desktop data and layout, which will affect the performance of the terminal device.

[0058] In view of this, the embodiment of the present application provides a method for processing desktop applications, when the terminal device enters the multitasking interface in the horizontal screen state, the display state of the launcher remains in the vertical screen state; when the terminal device exits the multitasking interface in the horizontal screen state, the display state of the launcher is still in the vertical screen state. In this way, when the terminal device enters or exits the multitasking interface in the horizontal screen state, the display state of the launcher always remains in the vertical screen state, and the launcher will not reload the desktop due to the horizontal and vertical screen switching, thereby improving the performance of the terminal device.

[0059] In order to better understand the embodiment of the present application, the structure of the terminal device in the embodiment of the present application is introduced below:

[0060] Figure 2 The structure diagram of the terminal device 100 is shown. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0061] Among them, the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

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

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

[0064] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

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

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

[0067] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0068] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. While the charging management module 140 is charging the battery 142, it may also power the terminal device through the power management module 141.

[0069] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0070] The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

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

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

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

[0074] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0075] In some embodiments, antenna 1 of terminal device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that terminal device 100 can communicate with the network and other devices through wireless communication technology.

[0076] The terminal device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.

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

[0078] The terminal device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0079] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, etc. of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0080] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the terminal device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0081] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

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

[0083] The terminal device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0084] Exemplarily, the terminal device 100 may further include one or more of a button 190 , a motor 191 , an indicator 192 , a SIM card interface 195 (eSIM card), and the like.

[0085] The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture, etc. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the terminal device 100.

[0086] Figure 3 It is a software structure block diagram of the terminal device 100 according to an embodiment of the present application.

[0087] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0088] The application layer can include a series of application packages.

[0089] like Figure 3 As shown, the application package can include applications such as camera, calendar, phone, map, video and desktop application launcher.

[0090] The launcher is the desktop launcher of the terminal device, where the desktop UI of the terminal device is collectively referred to as the launcher. The launcher can be used to display and manage other applications in the terminal device. For example, when the terminal device receives a trigger operation for an application card in the desktop, the terminal device can launch the application based on the launcher. The launcher may include a gesture manager, a desktop state manager, and a multitasking view manager, etc.

[0091] The gesture manager (OverviewCommandHelper) is used to monitor the user's trigger gesture on the display screen. The gesture manager can determine the module to be called based on the instruction corresponding to the user's trigger gesture. For example, in an embodiment of the present application, the gesture manager can report the overviewstate instruction to the desktop state manager to enter the multitasking interface based on the instruction corresponding to the trigger operation of sliding up from the bottom of the display screen and holding; the gesture manager can also report the normalstate instruction to the desktop state manager to enter the desktop based on the instruction corresponding to the click operation of deleting a button or a blank area in the multitasking interface.

[0092] The launcher state manager (LauncherStateManager) is used to manage the display state of the launcher application. The launcher state manager can determine the process of entering the multitasking interface or the process of entering the desktop according to the instructions reported by the gesture manager. The desktop state may include the multitasking state (overview) when entering the multitasking interface and the normal state (normal) when entering the desktop. The launcher state manager can switch the display state of the launcher application, for example, switch the display state of the launcher application from the portrait state to the landscape state, or switch the display state of the launcher application from the landscape state to the portrait state.

[0093] The multitasking view manager (RecentsView) is used to manage the layout of the multitasking interface. The multitasking view manager can obtain the horizontal and vertical screen status of the terminal device. When the terminal device is in the horizontal screen state, the multitasking view manager draws the corresponding multitasking interface in the horizontal screen state; when the terminal device is in the vertical screen state, the multitasking view manager draws the corresponding multitasking interface in the vertical screen state.

[0094] The application framework layer provides API and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0095] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a resource manager, a view system, a notification manager, an activity manager, and the like.

[0096] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, touch the screen, drag the screen, capture the screen, etc.

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

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

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

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

[0101] The activity manager is responsible for managing the startup, status, life cycle and other activities of the application. Among them, activity is an application component that can provide an interface for users to interact with the terminal device through the interface to complete a task.

[0102] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0103] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0104] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

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

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

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

[0108] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

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

[0110] The kernel layer is the layer between hardware and software. The kernel layer can contain display drivers, camera drivers, audio drivers, sensor drivers, etc.

[0111] Among them, the terminal device can obtain the horizontal and vertical screen status of the terminal device based on sensor driving.

[0112] The express delivery reminder method provided by the embodiment of the present application is described in detail below in conjunction with the accompanying drawings. It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or it can be a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this.

[0113] In the embodiments of the present application, the processing method of desktop applications is described by taking the terminal device as a mobile phone as an example. It should be noted that multitasking can be understood as multiple applications started by the terminal device. In some embodiments, the display screen of the terminal device can display the currently running application, and the user can directly interact with the currently running application; the terminal device can also run other applications in the background, and the user cannot directly interact with the applications running in the background. When the terminal device enters the multitasking interface, the user can view all the applications running on the terminal device.

[0114] It should be noted that the embodiments of the present application include trigger gestures such as swiping up, swiping down, swiping left, and swiping right, among which up, down, left, and right are relative to the user and have nothing to do with the terminal device in portrait mode or landscape mode, and up, down, left, and right are not limited to a certain boundary of the terminal device.

[0115] For example, Figure 4 A schematic diagram of an interface of a method for processing a desktop application provided by an embodiment of the present application is shown, such as Figure 4 As shown:

[0116] Figure 4 The interface shown in a in FIG. 1 shows the application currently running on the terminal device. For example, the terminal device is running a video application, and the terminal device can display the video content in a horizontal screen, and the user can watch the video content.

[0117] The terminal device can support multiple system navigation methods, such as navigation keys and full-screen gestures. Taking the terminal device as a mobile phone as an example, the navigation keys are three visible virtual keys reserved at the bottom of the screen, and users can click these three virtual keys to achieve different operation functions. Full-screen gestures remove the three virtual keys at the bottom of the screen, and the terminal device can operate the mobile phone system based on different positions and different sliding operations of the user on the screen.

[0118] In a possible implementation, the terminal device uses a full-screen gesture system navigation method. In this case, the terminal device can receive a user's sliding operation at different positions on the screen, and in response to the sliding operation, the terminal device can execute corresponding steps. For example: Figure 4 In the interface shown in a of FIG, when the terminal device receives an operation of a user swiping upward from the bottom of the screen, the terminal device can enter the desktop; when the terminal device receives an operation of a user swiping inward from the left or right side of the screen, the terminal device can return to the previous level. Figure 4 In the interface shown in a of FIG. 1 , when the terminal device receives a trigger operation by the user sliding up from the bottom of the screen and holding, the terminal device can enter the following Figure 4 The interface shown in b.

[0119] Figure 4 The interface shown in b in the figure shows multiple task cards recently run by the terminal device. The task card can be understood as: before the terminal device enters the multi-tasking interface, it can take a screenshot of the display interface of the current application, obtain a screenshot of the current interface, and display the screenshot as a task card in the multi-tasking interface. In some embodiments, the arrangement of multiple task cards in the multi-tasking interface can be as follows: Figure 4As shown in the b interface in , multiple task cards are sorted according to the time sequence of the last application run. For example, the terminal device first starts the calendar application, and then the terminal device starts the video application without closing the calendar application. At this time, the multi-task interface can display the video task card and the calendar task card in sequence.

[0120] It is understandable that the terminal device can display the running application in landscape mode, such as a video application; the terminal device can also display the running application in portrait mode, such as a calendar application. The task card may include an application icon 402, an application name 403, and an image 404 displayed by the application. When a running application enters the multitasking interface or the application enters the background and the display state is landscape mode, the terminal device can capture the image of the application displayed in landscape mode, and the image portion of the task card of the application can be displayed in landscape mode, such as Figure 4 When the running application enters the multitasking interface or the application enters the background running state in the vertical screen state, the terminal device can capture the image of the application displayed in the vertical screen, and the image part of the task card of the application can be displayed in the vertical screen state, such as Figure 4 Image 405 displayed by the calendar application in the interface shown in b.

[0121] It is understandable that the horizontal or vertical screen state of the image displayed by the application has nothing to do with the horizontal or vertical screen state of the task card of the application. Figure 4 In the interface shown in b, the image 405 displayed by the calendar application is in a vertical screen state, but because the terminal device enters the horizontal screen Figure 4 In the interface shown in b, the calendar task card is displayed in horizontal mode.

[0122] In addition, it should be noted that in the embodiment of the present application, the horizontal and vertical screen states of the terminal device are the same as the display states of the applications running on the terminal device. For example, when the terminal device is in the vertical screen state, the display state of the applications running on the terminal device is also in the vertical screen state; when the terminal device is in the horizontal screen state, the display state of the applications running on the terminal device is also in the horizontal screen state (e.g. Figure 4 The interface shown in a in the figure), which will not be described in detail in the embodiment of the present application.

[0123] It should be noted that although Figure 4 The interface shown in b in the possible implementation Figure 1 The interface shown in b in FIG. 1 is similar to that shown in FIG. 2 , and the user may not be able to intuitively view the difference between the launcher in the horizontal screen state and the vertical screen state from the interface. However, in the embodiment of the present application, the terminal device displays Figure 4When the interface shown in b is displayed, the launcher of the terminal device is always in vertical mode. Figure 1 In the interface shown in b, the launcher of the terminal device is in the horizontal screen state. Thus, in the embodiment of the present application, when the terminal device enters the multitasking interface in the horizontal screen state, the launcher of the terminal device will not execute the process of switching from the vertical screen state to the horizontal screen state. Therefore, the terminal device does not need to reload the desktop data and desktop layout in the horizontal screen state, thereby optimizing the performance of the desktop application.

[0124] In some embodiments, when the terminal device enters the multitasking interface in the horizontal screen state, the status bar may not be displayed, such as Figure 5 In some other embodiments, when the terminal device enters the multitasking interface in the horizontal screen state, the status bar may be displayed. Figure 5 When receiving a trigger operation of sliding up from the bottom of the screen and holding it, the terminal device can display Figure 5 The interface shown in c. Figure 5 The interface shown in c in FIG. 1 shows a status bar, which includes information such as power, time, and signal strength. In the embodiment of the present application, the launcher of the terminal device is always in a vertical screen state. Figure 5 In the interface shown in c, the status bar is in a vertical screen state, and the status bar is displayed on one side of the first side of the terminal device including the camera. Figure 1 The status bar in the interface shown in b is displayed on one side of the second side of the terminal device. It can be seen that in the embodiment of the present application, when the terminal device enters the multitasking interface in landscape mode, the launcher is in portrait mode. In some other embodiments, the terminal device may display Figure 5 In the interface shown in b, the user may have the need to check the time, power, etc. The terminal device can receive a trigger operation of the user sliding inward from the left side of the screen. In response to the trigger operation, the terminal device enters the following Figure 5 The interface shown in c.

[0125] based on Figure 5 It can be seen that in the embodiment of the present application, when the terminal device enters the multitasking interface in the horizontal screen state, the launcher of the terminal device is in the vertical screen state. Figure 4 In some embodiments, when the terminal device receives a trigger operation for the delete button 401 or receives a trigger operation for a blank area in the multitasking interface, the terminal device may Figure 4 The interface shown in b is Figure 4 The launcher is always displayed in portrait mode. Figure 4 The interface shown in b in the figure switches to Figure 4 During the process of the interface shown in c in the figure, the terminal device will not display the rotation process of the desktop from the horizontal screen state to the vertical screen state (the rotation process can be referred to Figure 1 (see interface c in the figure).

[0126] For example, Figure 6 A schematic diagram of an interface of another method for processing a desktop application provided in an embodiment of the present application is shown. Figure 6 As shown:

[0127] In a possible implementation, the terminal device may adopt a system navigation method of a navigation key. In this case, the terminal device may receive a trigger operation of the user on the navigation key, and in response to the trigger operation, the terminal device may execute corresponding steps.

[0128] For example, the terminal device is running a video application, and the terminal device can display Figure 6 The interface shown in a, Figure 6 The interface shown in a in FIG. 1 shows an image of a video application, navigation keys 601, 602, and 603. Navigation key 601 can be used to instruct the terminal device to enter a multitasking interface; navigation key 602 can be used to instruct the terminal device to enter a desktop; and navigation key 603 can be used to instruct the terminal device to return to the previous level.

[0129] exist Figure 6 In the interface shown in a, the terminal device receives a trigger operation for the navigation key 601, and in response to the trigger operation, the terminal device enters Figure 6 The interface shown in b. Figure 6 The interface shown in b can be referred to Figure 4 The description of the interface shown in b is not repeated here.

[0130] Figure 6 The interface shown in b in FIG. 1 shows navigation keys 601, 602 and 603. When the terminal device receives a trigger operation for the navigation key 602, the terminal device enters the following Figure 6 In the interface shown in c, Figure 6 The interface shown in c may be the desktop of the terminal device. Figure 6 The interface shown in c can be referred to Figure 4 The description of the interface shown in c is not repeated here.

[0131] It is understandable that the terminal device displays Figure 6 When the interface shown in b is displayed, the launcher of the terminal device is in the vertical screen state; the terminal device displays Figure 6 When the interface shown in c is displayed, the launcher of the terminal device is also in the vertical screen state. Figure 6 Enter the interface shown in b Figure 6When the interface shown in c is displayed, the launcher of the terminal device always remains in the vertical screen state, and the desktop of the terminal device does not rotate when loading the desktop.

[0132] Based on this, the embodiment of the present application provides a method for processing desktop applications, wherein when the terminal device enters the multitasking interface in the horizontal screen state, the display state of the desktop application is the vertical screen state; when the terminal device exits the multitasking interface, the display state of the desktop application is the vertical screen state; in the process of switching from the multitasking interface to the desktop, the terminal device maintains the display state of the desktop application in the vertical screen state. In this way, in the process of the terminal device entering the multitasking interface in the horizontal screen until exiting the multitasking interface, the display state of the desktop application remains in the vertical screen, reducing the horizontal and vertical screen switching of the desktop application, thereby improving the performance of the terminal device.

[0133] The above has described the scenario of entering and exiting the multitasking interface in the horizontal screen state of the terminal device in the embodiment of the present application. In order to improve the user experience, the embodiment of the present application also provides a scenario of browsing multiple task cards. Figure 7 and Figure 8 This scenario is described.

[0134] For example, Figure 7 A schematic diagram of an interface of a method for processing a desktop application in an embodiment of the present application is shown, such as Figure 7 As shown:

[0135] In a possible implementation, the terminal device can enter the multi-tasking interface in the vertical screen state, such as Figure 7 The interface shown in a. Figure 7 In the interface shown in a in , the terminal device can display multiple task cards. It is understandable that the terminal device can run multiple applications in the background, and the multi-task interface can display multiple task cards matching the multiple applications, wherein the screen of the terminal device can display some task cards, while other task cards are not displayed on the screen. When the user wants to view other task cards, the terminal device can display the corresponding task card according to the user operation.

[0136] For example, in Figure 7 In the interface shown in a of FIG. 1 , when the terminal device receives a trigger operation for sliding the screen to the left, the terminal device may display the following Figure 7 The interface shown in b. Figure 7 In the interface shown in b, multiple task cards move to the left. Figure 7 In the interface shown in a, the terminal device displays some video task cards; Figure 7 In the interface shown in b, the terminal device can fully display the video task card.

[0137] Alternatively, when the terminal device receives a trigger operation for sliding the screen to the right, the multiple task cards displayed by the terminal device may move to the right.

[0138] It should be noted that when the terminal device displays the multitasking interface in portrait mode, the user can browse multiple task cards based on the trigger operation of sliding left and right. When the terminal device displays the multitasking interface in landscape mode, since the launcher of the terminal device always remains in portrait mode, when the terminal device enters the multitasking interface in landscape mode, the terminal device will continue to use the browsing method of multiple task cards in portrait mode. For example, the display state of the desktop application is in portrait mode. In the multitasking interface, the task cards are arranged left and right. The user can adjust the position of the task cards on the screen by sliding left and right. After rotating the terminal device 90°, the terminal device is in landscape mode, but the display state of the desktop application is in portrait mode. At this time, the terminal device enters the multitasking interface in landscape mode (such as Figure 7 (as shown in c in the figure). Figure 7 In the interface shown in c, the task cards are arranged vertically, and the user should adjust the position of the task cards on the screen by sliding up and down.

[0139] It is understandable that the terminal device Figure 7 In the interface shown in a, the user can adjust the position of the multi-task card by sliding left and right; the terminal device can Figure 7 In the interface shown in c in , the user can adjust the position of the multi-task card by sliding up and down. For the user, in the two scenarios, the layout of the task card is different from the user operation, which affects the aesthetics of the multi-task interface and reduces the user experience.

[0140] The embodiment of the present application sets a browsing mode for multiple task cards in the horizontal screen state. The embodiment of the present application provides a method for adjusting the position of the task card on the screen based on the trigger operation of the user's left and right sliding when the terminal device enters the multi-task interface in the horizontal screen state. For example, Figure 8 As shown:

[0141] When the terminal device enters the multitasking interface in landscape mode, it can display Figure 8 The interface shown in a; Figure 8 The interface shown in a in FIG. 1 shows multiple task cards. When the terminal device receives a trigger operation for sliding the screen to the left, the terminal device can enter Figure 8 The interface shown in b. Figure 8 In the interface shown in b, multiple task cards are shifted to the left. Figure 8 In the interface shown in a, the terminal device displays some calendar task cards; Figure 8In the interface shown in b, the terminal device can fully display the calendar task card.

[0142] Alternatively, when the terminal device receives a trigger operation for sliding the screen to the right, the multiple task cards displayed by the terminal device may be translated to the right.

[0143] In the embodiment of the present application, when the terminal device enters the multitasking interface in the portrait mode, the terminal device can adjust the position of the task card based on the left and right sliding of the user; when the terminal device enters the multitasking interface in the landscape mode, the terminal device can still adjust the position of the task card based on the left and right sliding of the user. It is understandable that when the terminal device enters the multitasking interface in the landscape mode, the launcher is in the portrait mode. In this way, the situation that the terminal device does not switch the launcher between landscape and portrait modes will not affect the way the user browses the task card, thereby improving the user's experience.

[0144] It should be understood that the interface provided in the embodiments of the present application is merely an example and does not constitute a limitation on the embodiments of the present application.

[0145] The above embodiments describe the use scenarios of the desktop application processing method provided by the embodiments of the present application. Figure 9-11 The process of the desktop application processing method provided in the embodiment of the present application is described.

[0146] The application layer of the terminal device may include a desktop application launcher, wherein the launcher may include a gesture manager OverviewCommandHelper, a desktop state manager LauncherStateManager, and a multitasking view manager RecentsView. Each module can refer to Figure 3 The relevant description in the embodiment of the present application will not be repeated here.

[0147] Let's combine Fig. 9 The process of a terminal device entering a multi-tasking interface in a horizontal position in an embodiment of the present application is described. Fig. 9 A schematic diagram of a process flow of a desktop application processing method provided by an embodiment of the present application is shown, such as Fig. 9 As shown:

[0148] S901: In response to a first operation, the gesture manager reports a first instruction to the desktop state manager.

[0149] The first operation is a trigger operation of sliding up from the bottom of the display screen and holding; or the first operation is a trigger operation of a first button in the first interface; wherein the first button is used to instruct the terminal device to enter the multitasking interface. For example, the first operation may correspond to Figure 4The first operation may correspond to the operation of sliding up from the bottom of the screen and holding in the interface shown in a; or the first operation may correspond to the operation of sliding up from the bottom of the screen and holding in Figure 6 The triggering operation of the navigation key 601 in the interface shown in a in FIG. The first instruction is used to instruct the terminal device to enter the multitasking interface. For example, the first instruction may be the overviewstate instruction in the goToState instruction, and the overviewstate corresponds to the multitasking state.

[0150] When the sensor driver of the terminal device detects the first operation, the instruction corresponding to the first operation can be reported to the gesture manager. The gesture manager can be used as a gesture logic entry. The first operation instructs the terminal device to enter the multitasking interface. When the gesture manager recognizes the first operation, the desktop state manager is called and the first instruction is reported to the desktop state manager. Among them, the first instruction is the overviewstate instruction.

[0151] S902: When the desktop state manager receives the first instruction, the second instruction in the desktop state manager is deleted, and the process of switching the display state of the desktop application from the portrait state to the landscape state is not executed.

[0152] The second instruction is an instruction stored in the desktop state manager for processing the native process of entering the multitasking interface from the horizontal screen state of the terminal device, which can be understood as: in the native process, the second instruction can be used to instruct the display state of the desktop application to switch from the vertical screen state to the horizontal screen state. The second instruction can be the setRequestOrientation instruction, wherein the second instruction can be the instruction setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) for setting the horizontal screen state.

[0153] After receiving the first instruction, the desktop state manager may delete the second instruction in the desktop state manager.

[0154] In some embodiments, the terminal device can detect the landscape or portrait state of the terminal device based on the acceleration sensor drive, and obtain information used to characterize the landscape or portrait state of the terminal device. For example, the first information is used to characterize that the terminal device is in the landscape state; the second information is used to characterize that the terminal device is in the portrait state.

[0155] When the desktop state manager obtains the first information and determines that the terminal device is in the horizontal screen state, the desktop state manager can delete the second instruction in the native process in the horizontal screen state so that the desktop state manager does not execute the process of switching the display state of the desktop application from the vertical screen state to the horizontal screen state. When the desktop state manager obtains the second information and determines that the terminal device is in the vertical screen state, the desktop state manager can continue to execute the native process in the vertical screen state.

[0156] S903: The desktop state manager reports a third instruction to the multitasking view manager.

[0157] The third instruction is an instruction for representing a page scroll trigger event (onPageScroll). The third instruction can instruct the multitasking view manager to draw a task card so that the terminal device can adjust the position of the task card based on the user's left or right swipe trigger operation when displaying the multitasking interface later.

[0158] S904. The multi-task view manager draws a task card in a horizontal screen state according to the third instruction, the first information and the converted coordinates, and displays a second interface.

[0159] The converted coordinates are the coordinates converted from the portrait coordinate system to the landscape coordinate system. It is understandable that the display state of the launcher of the terminal device is the portrait state, and the original coordinate system is the portrait coordinate system. In the embodiment of the present application, when the terminal device is in the landscape state, the display state of the launcher is still in the portrait state. At this time, the terminal device needs to convert the coordinates in the portrait coordinate system into the coordinates in the landscape coordinate system, and redraw the task card in the landscape state to achieve Figure 8 The second interface can correspond to Figure 4 The interface shown in b, or Figure 6 The interface shown in b.

[0160] The multitasking view manager may determine that the terminal device is currently in a horizontal screen state according to the first information, and after receiving the third instruction, the multitasking view manager draws a task card in the horizontal screen state based on the converted coordinates. Step S904 may include S9041-S9043, exemplarily:

[0161] S9041. When the multi-task view manager receives the third instruction, the multi-task view manager obtains first information reported by the sensor driver based on the first interface.

[0162] The first interface is used to obtain the horizontal or vertical screen state of the terminal device. For example, the first interface is getOrientation. The sensor driver can obtain the horizontal or vertical screen state of the current terminal device (the first information and the second information), and report the horizontal or vertical screen state to the sensor manager (SensorManager). The multitasking view manager obtains the first information based on getOrientation and determines that the terminal device is in the horizontal screen state.

[0163] S9042. The multi-task view manager performs coordinate conversion on the task card to obtain converted coordinates.

[0164] The multitasking view manager can convert the coordinates of the vertical screen coordinate system into the coordinates of the horizontal screen coordinate system. This will be described in detail later in the embodiments of the present application and will not be repeated here.

[0165] S9043. The multi-task view manager draws the task card in the horizontal screen state according to the converted coordinates.

[0166] The task card in the horizontal screen state can correspond to Figure 8 The video task card and / or calendar task card in the interface shown in a of FIG. The interface drawn by the multi-task view manager can be as shown in FIG. Figure 8 When the terminal device receives a trigger operation of sliding left or right by the user, the task card moves along the sliding direction of the trigger operation.

[0167] The processing method of the desktop application provided by the embodiment of the present application is that in response to the first operation, the gesture manager reports the first instruction to the desktop state manager; when the desktop state manager obtains the first instruction, the second instruction in the desktop state manager is deleted, and the process of switching the display state of the desktop application from the vertical screen state to the horizontal screen state is not executed; the desktop state manager reports the third instruction to the multi-task view manager; the multi-task view manager draws the task card in the horizontal screen state according to the third instruction, the first information and the converted coordinates, and displays the second interface. In this way, when the terminal device enters the multi-task interface in the horizontal screen state, the display state of the desktop application can be kept in the vertical screen state. At the same time, the user can adjust the position of the task card based on left and right sliding, which improves the performance of the terminal device without affecting the user experience.

[0168] Combine the following Fig.10 The converted coordinates in the embodiment of the present application are described as follows: Fig.10 As shown:

[0169] The display state of the desktop application is vertical screen state. The vertical screen coordinate system can be as follows Fig.10As shown in a, the boundary point close to the camera in the terminal device can be defined as (0,0). The first coordinate point A (x1, y1) of the first task card can be defined as the vertex coordinate of the first task card in the vertical screen coordinate system. When the terminal device renders the first task card, it can start rendering from point A until the rectangular area corresponding to the node view of the first task card is rendered. Among them, x1 is the horizontal coordinate of the vertex coordinate of the first task card in the vertical screen coordinate system, and y1 is the vertical coordinate of the vertex coordinate of the first task card in the vertical screen coordinate system.

[0170] After rotating the terminal device 90° counterclockwise, the terminal device can enter the horizontal screen state. The horizontal screen coordinate system can be as follows Fig.10 The interface shown in b in . Relative to the terminal device, the (0,0) point is always the boundary point close to the camera. The second coordinate point A1 of the first task card can be defined as the vertex coordinate of the first task card in the horizontal screen coordinate system, wherein the third coordinate point B1 (y1, x1) can correspond to the first coordinate point A (x1, y1) in the vertical screen coordinate system, and the terminal device can obtain the coordinates (y1, x1 + a) of the second coordinate point A1. When rendering the first task card, the terminal device can start rendering from point A1 until the rectangular area corresponding to the node of the first task card is rendered. Among them, the coordinates of the other three points in the rectangular area can be the third coordinate B1 (y1, x1), the fourth coordinate C1 (y1 + b, x1 + a) and the fifth coordinate D1 (y1 + b, x1); wherein a is the length of the first side of the first task card, b is the length of the second side of the first task card, and the values ​​of a and b can be customized.

[0171] Based on this, the terminal device can obtain the coordinates of the four points of the first task card converted into the horizontal screen coordinate system, including: the second coordinate A1 (y1, x1 + a), the third coordinate B1 (y1, x1), the fourth coordinate C1 (y1 + b, x1 + a) and the fifth coordinate D1 (y1 + b, x1). The multitasking view manager of the terminal device draws the first task card according to the converted coordinates.

[0172] It should be noted that, in order to facilitate understanding of the vertical screen coordinate system, the present application embodiment uses Fig.10 The interface shown in a in the figure is used for explanation. This interface can be understood as the native coordinate system of the first task card when the terminal device is in landscape mode and the launcher display mode is in portrait mode. Fig.10 The interface shown in a is the same as Fig.10 The interfaces shown in b are respectively the interfaces viewed from different angles when the terminal device is in horizontal mode and the launcher display is in vertical mode. It can be understood that Fig.10The interface shown in a has nothing to do with the interface when the terminal device is in portrait mode, and there is no mapping relationship between the task cards displayed on the terminal device in landscape mode and the task cards displayed on the terminal device in portrait mode.

[0173] The above embodiment introduces the coordinate conversion method of the first task card in the embodiment of the present application, and the multi-task interface of the terminal device may also include a second task card. The coordinate conversion method of the second task card is described below.

[0174] like Fig.10 In the interface shown in b in the figure, the terminal device obtains the vertex coordinates A1 of the first task card, and the terminal device can obtain the vertex coordinates of the second task card based on the spacing relationship between the first task card and the second task card. Exemplarily, the spacing between the first task card and the second task card is set to c, where the value of c can be customized. The converted coordinates of the second task card are the sixth coordinate (y1+b+c, x1+a), the seventh coordinate (y1+b+c, x1), the eighth coordinate (y1+2b+c, x1+a) and the ninth coordinate (y1+2b+c, x1). The terminal device can draw the second task card according to the converted coordinates of the second task card.

[0175] It is understandable that the multi-task interface may include n task cards, and the coordinates of the nth task card after conversion are A n (y1+(n-1)×(b+c),x1+a),B n (y1+(n-1)×(b+c),x1),C n (y1+n×b+(n-1)×c,x1+a) and D n (y1+nb+(n-1)×c,x1). The embodiments of the present application are not listed one by one.

[0176] The above embodiments are combined Figure 9-10 The scenario of entering the multitasking interface in the horizontal screen state of the terminal device in the embodiment of the present application is introduced below. Fig.11 Explain the scenario of the terminal device exiting the multitasking interface, such as Fig.11 As shown:

[0177] S1101. In response to a second operation, a gesture manager of a terminal device reports a fourth instruction to a desktop state manager.

[0178] The second operation is a trigger operation for the second button, and the second button is used to instruct the terminal device to delete the task card in the second interface; or, the second operation is a trigger operation for the blank area in the second interface; or, the second interface includes a third button, and the third button is used to instruct the terminal device to return to the main interface, and the second operation is a trigger operation for the third button.

[0179] The second button may correspond to Figure 4 The delete button 401 in the interface shown in b in the second operation is Figure 4 The trigger operation for the delete button 401 in the interface shown in b in FIG. Figure 4 The trigger operation of the blank area in the interface shown in b in FIG. The third button may correspond to Figure 6 The navigation key 602 in the interface shown in b in FIG. Figure 6 The trigger operation of the navigation key 602 in the interface shown in b. The fourth instruction is used to instruct the terminal device to exit the multitasking interface. For example, the fourth instruction can be the normalstate instruction in the goToState instruction. Normalstate corresponds to exiting the multitasking state and switching to the desktop state.

[0180] When the sensor driver of the terminal device detects the second operation, the instruction corresponding to the second operation may be reported to the gesture manager. The second operation instructs the terminal device to exit the multitasking interface. When the gesture manager recognizes the second operation, the desktop state manager is called and a fourth instruction is reported to the desktop state manager. The fourth instruction is a normalstate instruction.

[0181] S1102. When the desktop state manager receives the fourth instruction, the fifth instruction in the desktop state manager is deleted, and the process of switching the display state of the desktop application from the horizontal screen state to the vertical screen state is not executed; the fifth instruction is used to instruct the display state of the desktop application to switch from the horizontal screen state to the vertical screen state.

[0182] The fifth instruction is an instruction stored in the desktop state manager for processing the native process of exiting the multitasking interface in the horizontal screen state of the terminal device, which can be understood as: in the native process, the fifth instruction is used to instruct the display state of the desktop application to switch from the horizontal screen state to the vertical screen state. The fifth instruction can be the setRequestOrientation instruction, wherein the fifth instruction can be the instruction setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) for setting the vertical screen state.

[0183] After receiving the fourth instruction, the desktop state manager may delete the fifth instruction in the desktop state manager, so that the terminal device may not execute the process of switching the display state of the desktop application from the horizontal screen state to the vertical screen state.

[0184] S1103: The desktop application obtains the sixth instruction reported by the desktop state manager, and the desktop application displays the third interface; wherein the sixth instruction is used to instruct the desktop application to draw and display the desktop.

[0185] The sixth instruction is an instruction for representing a page scrolling trigger event (onPageScroll). The sixth instruction may instruct the desktop view manager of the desktop application to draw and display the desktop. The third interface may correspond to Figure 4 The interface shown in c, or Figure 6 The terminal device can display the desktop based on the sixth instruction.

[0186] The processing method of the desktop application provided in the embodiment of the present application is that in response to the second operation, the gesture manager of the terminal device reports the fourth instruction to the desktop state manager; when the desktop state manager obtains the fourth instruction, the fifth instruction in the desktop state manager is deleted, and the process of switching the display state of the desktop application from the horizontal screen state to the vertical screen state is not executed; the desktop application obtains the sixth instruction reported by the desktop state manager, and the desktop application displays the third interface. In this way, when the terminal device exits the multitasking interface in the horizontal screen state, the display state of the desktop application can be kept in the vertical screen state, thereby improving the performance of the terminal device.

[0187] Based on the above embodiments, the present application embodiment provides a method for processing a desktop application. For example, Fig.12 A flowchart of a method for processing a desktop application provided in an embodiment of the present application.

[0188] S1201. The terminal device displays a first interface; wherein the terminal device is in a horizontal screen state, and the first interface displays a first application running on the terminal device; the first application is an application that supports horizontal screen display.

[0189] The first interface may be an interface of an application program running in a horizontal screen state. For example, the first interface may correspond to Figure 4 Alternatively, the first interface may correspond to Figure 6 The first application is an application running in the foreground of the terminal device and supporting horizontal screen display. For example, the first application may correspond to Figure 4 Alternatively, the first application may correspond to a video application in the interface shown in a; Figure 6 The video application in the interface shown in a.

[0190] S1202: The terminal device receives a first operation from the user.

[0191] The first operation is a trigger operation of sliding up from the bottom of the display screen and holding; or the first operation is a trigger operation of a first button in the first interface; wherein the first button is used to instruct the terminal device to enter the multitasking interface. For example, the first operation may correspond to Figure 4 The first operation may correspond to the operation of sliding up from the bottom of the screen and holding in the interface shown in a; or the first operation may correspond to the operation of sliding up from the bottom of the screen and holding in Figure 6The triggering operation of the navigation key 601 in the interface shown in a.

[0192] S1203. In response to the first operation, the terminal device displays a second interface; wherein the second interface displays a first task card corresponding to the first application, and the first task card is in a horizontal screen state.

[0193] The second interface may be a multi-tasking interface displayed in a horizontal screen state. For example, the second interface may correspond to Figure 4 Alternatively, the second interface may correspond to Figure 6 The second interface includes a first task card, which can correspond to Figure 4 Alternatively, the first task card may correspond to the video task card in the interface shown in b; Figure 6 The video task card in the interface shown in b.

[0194] S1204: The terminal device receives the second operation of the user.

[0195] The second operation is a trigger operation for the second button, and the second button is used to instruct the terminal device to delete the task card in the second interface; or, the second operation is a trigger operation for the blank area in the second interface; or, the second interface includes a third button, and the third button is used to instruct the terminal device to return to the main interface, and the second operation is a trigger operation for the third button.

[0196] The second button may correspond to Figure 4 The delete button 401 in the interface shown in b in the second operation is Figure 4 The trigger operation for the delete button 401 in the interface shown in b in FIG. Figure 4 The trigger operation of the blank area in the interface shown in b in FIG. The third button may correspond to Figure 6 The navigation key 602 in the interface shown in b in FIG. Figure 6 The trigger operation for the navigation key 602 in the interface shown in b.

[0197] S1205. In response to the second operation, the terminal device displays a third interface; wherein the terminal device is in a vertical screen state when displaying the third interface; wherein, the terminal device maintains the display state of the desktop application in a vertical screen state during the process of displaying the second interface and switching the second interface to the third interface.

[0198] The third interface may be a desktop. For example, the third interface may correspond to Figure 4 Alternatively, the third interface may correspond to the interface shown in c in Figure 6 The terminal device displays the interface shown in c. Figure 4 The interface shown in b in the figure, and Figure 4The interface shown in b is Figure 4 During the switching process of the interface shown in c in the figure, the display state of the desktop application is kept in the vertical screen state; or, the terminal device displays Figure 6 The interface shown in b in the figure, and Figure 6 The interface shown in b is Figure 6 During the interface switching process shown in c, the display state of the desktop application is kept in the vertical state.

[0199] Based on this, when the terminal device enters and exits the multitasking interface in landscape mode, the desktop application does not perform landscape or portrait switching, thereby improving the performance of the terminal device.

[0200] Optionally, the second interface includes a status bar; the status bar is in a vertical state.

[0201] Among them, the second interface can correspond to Figure 5 In the interface shown in c, the status bar in the vertical screen state can be Figure 5 As shown in the c interface.

[0202] Optionally, the second interface does not include a status bar; after step S1203, it also includes: the terminal device receives a third operation of the user in the second interface; in response to the third operation, the terminal device displays a fourth interface, wherein the fourth interface displays a first task card and a status bar, and the status bar is in a vertical screen state.

[0203] The third operation may be a trigger operation of sliding from the left side of the display screen to the right side, and the third operation may correspond to the user Figure 5 The fourth interface is a multi-tasking interface with a status bar. The fourth interface can correspond to Figure 5 The interface shown in c.

[0204] Optionally, the first task card is: a task card drawn by the desktop application based on converted coordinates, where the converted coordinates are coordinates converted from a vertical screen coordinate system to a horizontal screen coordinate system.

[0205] The vertical screen coordinate system can be expressed as Fig.10 As shown in the a interface in the figure, the horizontal screen coordinate system can be Fig.10 The converted coordinates are shown in the b interface. Fig.10 The coordinates of A1, B1, C1 and D1 of the first task card in the interface shown in b.

[0206] Optionally, the second interface also includes a second task card, which is a task card that matches the application running in the background of the terminal device; the second task card is: a task card drawn by the desktop application based on the converted coordinates; the method includes: the terminal device receives a fourth operation of the user on the second interface; the fourth operation includes a left swipe operation or a right swipe operation; in response to the fourth operation, the terminal device controls the first task card and the second task card to move along the sliding direction of the fourth operation.

[0207] Among them, the second interface can correspond to Figure 8 In the interface shown in a, the first task card can correspond to Figure 8 The video task card in the interface shown in a in FIG. 1 corresponds to the second task card Figure 8 The fourth operation may be a calendar task card in the interface shown in b; Figure 8 The operation of sliding left or right in the interface shown in a.

[0208] The processing method of the desktop application in the embodiment of the present application has been described above, and the device for executing the processing method of the desktop application provided in the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant device provided in the embodiment of the present application can execute the steps in the processing method of the desktop application.

[0209] like Fig.13 As shown, Fig.13 A structural schematic diagram of a desktop application processing device provided in an embodiment of the present application. The desktop application processing device can be a terminal device in an embodiment of the present application, or a chip or chip system in the terminal device.

[0210] like Fig.13 As shown, the processing device 1300 for desktop applications can be used in a communication device, circuit, hardware component or chip, and the processing device for desktop applications includes: a display unit 1301 and a processing unit 1302. The display unit 1301 is used to support the display step performed by the processing device 1300 for desktop applications; the processing unit 1302 is used to support the processing device 1300 for desktop applications to perform information processing steps.

[0211] In a possible implementation, the desktop application processing device 1300 may also include a communication unit 1303. Specifically, the communication unit is used to support the desktop application processing device 1300 to perform the steps of sending and receiving data. The communication unit 1303 may be an input or output interface, a pin or a circuit.

[0212] In a possible embodiment, the processing device of the desktop application may further include: a storage unit 1304. The processing unit 1302 and the storage unit 1304 are connected via a line. The storage unit 1304 may include one or more memories, and the memory may be a device used to store programs or data in one or more devices or circuits. The storage unit 1304 may exist independently and be connected to the processing unit 1302 of the processing device of the desktop application via a communication line. The storage unit 1304 may also be integrated with the processing unit 1302.

[0213] The storage unit 1304 may store computer-executable instructions of the method in the terminal device so that the processing unit 1302 executes the method in the above embodiment. The storage unit 1304 may be a register, a cache, or a RAM, etc. The storage unit 1304 may be integrated with the processing unit 1302. The storage unit 1304 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 1304 may be independent of the processing unit 1302.

[0214] The processing method of the desktop application provided in the embodiment of the present application can be applied to electronic devices with communication functions. The electronic devices include terminal devices, and the specific device form of the terminal devices can refer to the above related descriptions, which will not be repeated here.

[0215] An embodiment of the present application provides a terminal device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the above method.

[0216] The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in a memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above related embodiments, and will not be repeated here.

[0217] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.

[0218] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.

[0219] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.

[0220] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0221] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for processing a desktop application, characterized in that: Applied to a terminal device including a display screen, the method comprises: The terminal device displays a first interface; wherein the terminal device is in a horizontal screen state, and the first interface displays a first application running on the terminal device; the first application is an application that supports horizontal screen display; The terminal device receives a first operation from a user; In response to the first operation, the terminal device displays a multi-task interface, where the multi-task interface includes a first task card and a second task card; In response to the first operation, the terminal device displays a multi-task interface, including: According to the vertex coordinates of the first task card in the vertical screen coordinate system, the length of the first side of the first task card, and the length of the second side of the first task card, the vertex coordinates and other three point coordinates of the first task card in the horizontal screen coordinate system are obtained, and the first task card corresponds to the first application; Draw the first task card according to the vertex coordinates and other three point coordinates of the first task card in the horizontal screen coordinate system, and display the first task card in the multi-task interface, wherein the first task card is in a horizontal screen state; Obtaining the vertex coordinates and other three point coordinates of the second task card in the horizontal screen coordinate system according to the distance between the first task card and the second task card; Drawing the second task card according to the vertex coordinates and other three point coordinates of the second task card in the horizontal screen coordinate system, and displaying the second task card in the multitasking interface, wherein the second task card is a task card that matches the application running in the background of the terminal device; In a case where the multitasking interface does not include a status bar, the terminal device receives a third operation of the user in the multitasking interface; the third operation includes a triggering operation of sliding from the left side to the right side of the display screen; In response to the third operation, the terminal device displays a fourth interface, wherein the fourth interface is a multitasking interface with a status bar displayed, and the status bar is in a vertical screen state; Alternatively, when the multitasking interface includes a status bar, the status bar is in a vertical state; The terminal device receives a fourth operation of the user on the multitasking interface; the fourth operation includes a left swipe operation or a right swipe operation when the terminal device is in a horizontal screen state; In response to the fourth operation, the terminal device controls the first task card and the second task card to move along the sliding direction of the fourth operation; The terminal device receives a second operation of the user, where the second operation is used to instruct the terminal device to exit the multitasking interface; In response to the second operation, the terminal device displays a third interface; wherein, the terminal device is in a vertical screen state when displaying the third interface; when the terminal device displays the multitasking interface and switches the multitasking interface to the third interface, the display state of the desktop application launcher is in a vertical screen state.

2. The method according to claim 1, characterized in that: The vertex coordinates of the first task card in the vertical screen coordinate system are the first coordinates (x1, y1), and the coordinates of the first task card in the horizontal screen coordinate system include: the second coordinates (y1, x1+a), the third coordinates (y1, x1), the fourth coordinates (y1+b, x1+a) and the fifth coordinates (y1+b, x1); Among them, the second coordinate is the vertex coordinate of the first task card in the horizontal screen coordinate system, the third coordinate, the fourth coordinate and the fifth coordinate are the coordinates of the other three points of the first task card in the horizontal screen coordinate system respectively; x1 is the horizontal coordinate of the vertex coordinate of the first task card in the vertical screen coordinate system, y1 is the vertical coordinate of the vertex coordinate of the first task card in the vertical screen coordinate system, a is the length of the first side of the first task card, and b is the length of the second side of the first task card, wherein the length of the first side is smaller than the length of the second side.

3. The method according to claim 2, characterized in that The coordinates of the second task card in the horizontal screen coordinate system include: the sixth coordinate (y1+b+c, x1+a), the seventh coordinate (y1+b+c, x1), the eighth coordinate (y1+2b+c, x1+a) and the ninth coordinate (y1+2b+c, x1); wherein c is the distance between the first task card and the second task card.

4. The method according to claim 2 or 3, characterized in that: The launcher includes: a gesture manager, a desktop state manager and a multi-task view manager. In response to the first operation, the terminal device displays a multi-task interface, and further includes: In response to the first operation, the gesture manager reports a first instruction to the desktop state manager, where the first instruction is used to instruct the terminal device to enter a multi-tasking interface; When the desktop state manager receives the first instruction, the second instruction in the desktop state manager is deleted, and the process of switching the display state of the launcher from the portrait state to the landscape state is not executed; the second instruction is used to instruct the display state of the launcher to switch from the portrait state to the landscape state; The desktop state manager reports a third instruction to the multitasking view manager; the third instruction is used to instruct the multitasking view manager to draw a task card in a portrait state or a landscape state; The multitasking view manager draws the task card in the horizontal screen state according to the third instruction, the first information and the coordinates in the horizontal screen coordinate system, and displays the multitasking interface; the first information is information used to indicate that the terminal device is in the horizontal screen state.

5. The method according to claim 4, characterized in that The multitasking view manager draws the task card in the horizontal screen state according to the third instruction, the first information and the coordinates in the horizontal screen coordinate system, including: When the multi-task view manager receives the third instruction, the multi-task view manager obtains the first information reported by the sensor driver based on the first interface; the first interface is used to obtain the horizontal and vertical screen state of the terminal device; The multi-task view manager performs coordinate conversion on the task card to obtain coordinates in the horizontal screen coordinate system; The multi-task view manager draws the task card in the horizontal screen state according to the coordinates in the horizontal screen coordinate system.

6. The method according to claim 5, characterized in that The gesture manager includes OverviewCommandHelper; the desktop state manager includes LauncherStateManager; and the multitasking view manager includes RecentsView.

7. The method according to claim 1, characterized in that In response to the second operation, the terminal device displays a third interface, including: In response to the second operation, the gesture manager of the terminal device reports a fourth instruction to the desktop state manager, where the fourth instruction is used to instruct the terminal device to exit the multitasking interface; When the desktop state manager receives the fourth instruction, the fifth instruction in the desktop state manager is deleted, and the process of switching the display state of the launcher from the horizontal screen state to the vertical screen state is not executed; the fifth instruction is used to instruct the display state of the launcher to switch from the horizontal screen state to the vertical screen state; The launcher obtains the sixth instruction reported by the desktop status manager, and the launcher displays the third interface; wherein the sixth instruction is used to instruct the launcher to draw and display the desktop.

8. The method according to any one of claims 1-3, 5-7, characterized in that: The first operation is a trigger operation of sliding up from the bottom of the display screen and holding; Alternatively, the first operation is a triggering operation on a first button in the first interface; wherein the first button is used to instruct the terminal device to enter a multi-tasking interface.

9. The method according to any one of claims 1-3 and 5-7, characterized in that: The multitasking interface includes a second button, the second button is used to instruct the terminal device to delete a task card in the multitasking interface, and the second operation is a triggering operation for the second button; Alternatively, the second operation is a triggering operation on a blank area in the multitasking interface; Alternatively, the multitasking interface includes a third button, and the third button is used to instruct the terminal device to return to the main interface, and the second operation is a triggering operation for the third button.

10. A terminal device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the method according to any one of claims 1 to 9.

11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

12. A computer program product, characterized in that The method comprises a computer program, which, when being executed, enables a computer to execute the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Display control method and terminal device

    CN109857495A

  • Multi-task management method and terminal equipment

    CN113325988A