Application switching method, device, terminal and storage medium

By adopting shared floating window technology in the terminal, the problems of low switching efficiency between multiple applications and floating window occlusion are solved, and more efficient inter-application switching and better user experience are achieved.

CN114942802BActive Publication Date: 2025-02-18GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD

Patent Information

Application Number
CN202110169218.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-07
Publication Date
2025-02-18
Estimated Expiration
2041-02-07

AI Technical Summary

Technical Problem

The prior art is inefficient when switching between multiple applications, and the floating windows block each other, affecting the user's operating experience.

Method used

The shared floating window technology is adopted to display the interfaces of multiple front-end applications in the shared floating window, and toggle different application interfaces in the shared floating window through the application switching operation.

Benefits of technology

It improves the user's switching efficiency between different applications, avoids mutual occlusion between floating windows, and reduces the occlusion of floating windows on the background interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114942802B_ABST
    Figure CN114942802B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose an application switching method, device, terminal and storage medium, which belong to the field of human-computer interaction technology. The method includes: displaying a first application interface of a first application in a shared floating window, the first application belongs to n foreground applications displayed in a floating window, and n is an integer greater than or equal to 2; receiving an application switching operation; in response to the application switching operation, switching the first application interface displayed in the shared floating window to a second application interface of a second application, and the second application belongs to n foreground applications. With the solution provided by the embodiments of the present application, since the foreground application displayed in a floating window uses the same shared floating window for interface display, the problem of mutual occlusion between floating windows due to the simultaneous display of multiple floating windows can be avoided, and the occlusion of the background interface by the floating window can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of human-computer interaction technology, and in particular to an application switching method, device, terminal and storage medium. Background Art

[0002] With the continuous development of terminal technology, more and more application programs are installed in terminals. When using application programs, users often need to switch between application programs.

[0003] In order to improve the efficiency of application switching, more and more terminals begin to support the floating window function, that is, by displaying the application interface of the application in the floating window, users can perform in-application operations through the floating window. When you need to operate back and forth between multiple applications, you can open multiple floating windows to display the application interfaces of different applications. Summary of the invention

[0004] The embodiment of the present application provides an application switching method, device, terminal and storage medium. The technical solution is as follows:

[0005] On the one hand, an embodiment of the present application provides an application switching method, the method comprising:

[0006] Displaying a first application interface of a first application in the shared floating window, where the first application belongs to n foreground applications displayed in the floating window, where n is an integer greater than or equal to 2;

[0007] Receive application switching operations;

[0008] In response to the application switching operation, the first application interface displayed in the shared floating window is switched to a second application interface of a second application, where the second application belongs to the n foreground applications.

[0009] On the other hand, an embodiment of the present application provides an application switching device, the device comprising:

[0010] A display module, configured to display a first application interface of a first application in a shared floating window, where the first application belongs to n foreground applications displayed in the floating window, where n is an integer greater than or equal to 2;

[0011] A receiving module, used for receiving an application switching operation;

[0012] The display module is used to switch the first application interface displayed in the shared floating window to a second application interface of a second application in response to the application switching operation, and the second application belongs to the n foreground applications.

[0013] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the application switching method described in the above aspect.

[0014] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the application switching method as described in the above aspects.

[0015] On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the application switching method provided in the above aspect.

[0016] The technical solution provided by the embodiments of the present application includes at least the following beneficial effects:

[0017] In an embodiment of the present application, when there are at least two foreground applications that use floating window display, switching between multiple floating window applications is achieved by displaying the first application interface of the first application in the foreground application in a shared floating window, and when an application switching operation is received, switching to display the second application interface of the second application in the foreground application in the shared floating window, thereby improving the efficiency of users switching between different applications; and, since the foreground application that uses floating window display uses the same shared floating window for interface display, the problem of mutual occlusion between floating windows due to the simultaneous display of multiple floating windows can be avoided, and the occlusion of the background interface (main interface or application interface) caused by the floating window can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram of an interface when multiple application floating windows are displayed in the related art;

[0019] Figure 2 is an interface schematic diagram of an application switching process shown in an exemplary embodiment of the present application;

[0020] Figure 3 A method flow chart of an application switching method provided by an exemplary embodiment of the present application is shown;

[0021] Figure 4 A method flow chart of an application switching method provided by another exemplary embodiment of the present application is shown;

[0022] Figure 5 is a schematic diagram of an interface of an application adding process shown in an exemplary embodiment of the present application;

[0023] Figure 6 is a schematic diagram of an interface of an application removal process shown in an exemplary embodiment of the present application;

[0024] Figure 7 is a schematic diagram of an interface of an application fixing process shown in an exemplary embodiment of the present application;

[0025] Figure 8 A method flow chart of an application switching method provided by another exemplary embodiment of the present application is shown;

[0026] Fig. 9 is an interface schematic diagram of an application switching process shown in another exemplary embodiment of the present application;

[0027] Fig.10 is a schematic diagram of an interface of an application adding process shown in another exemplary embodiment of the present application;

[0028] Fig.11 A method flow chart of an application switching method provided by another exemplary embodiment of the present application is shown;

[0029] Fig.12 is a schematic diagram of an interface of an application switching process shown in another exemplary embodiment of the present application;

[0030] Fig.13 A method flow chart of an application switching method provided by another exemplary embodiment of the present application is shown;

[0031] Fig.14 is an interface schematic diagram of a floating window display mode switching process shown in an exemplary embodiment of the present application;

[0032] Fig.15 is an interface schematic diagram of an application closing process shown in an exemplary embodiment of the present application;

[0033] Fig.16 A structural block diagram of an application switching device provided by an embodiment of the present application is shown;

[0034] Fig.17 A structural block diagram of a terminal provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0035] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0036] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0037] For ease of understanding, the nouns involved in the embodiments of the present application are explained below:

[0038] Shared floating window: A new type of floating window proposed in the embodiment of the present application is different from the traditional application floating window which corresponds one-to-one to the application (that is, one application floating window displays the application interface of the corresponding application). The shared floating window is shared by multiple applications that use floating window display, that is, multiple applications all display the application interface through the shared floating window, and at the same time, the shared floating window only displays the application interface of one application.

[0039] In some embodiments, when there is only one foreground application using a floating window display, the shared floating window is displayed similarly to a traditional application floating window; when there are at least two foreground applications using a floating window display, the terminal still displays a single shared floating window (different from the traditional solution of displaying at least two application floating windows at the same time), and the user can switch the application displayed in the shared floating window through the application switching operation to achieve switching between applications.

[0040] Optionally, in addition to displaying the application interface, the shared floating window also supports responding to in-application operations on the displayed application interface. For example, when the news reading interface of a news reading application is displayed in the shared floating window, the user can slide up or down the news reading interface by sliding; when the recording interface of a recording application is displayed in the shared floating window, the user can control the recording progress by clicking the recording control in the recording interface.

[0041] Optionally, the application interface displayed in the shared floating window is a reduced application interface, which includes all interface elements in the application interface; or, the core interface elements in the application interface are displayed in the shared floating window, and the core interface elements are pre-set by the application. For example, for taxi-hailing applications, the terminal proportionally reduces the taxi-hailing interface in full-screen display state, and then displays the reduced taxi-hailing interface in the shared floating window; for recording applications, the terminal extracts the recording time and recording controls (i.e., core interface elements) in the recording interface, and then only displays the recording time and recording controls in the shared floating window.

[0042] Optionally, the shared floating window can be displayed on the system main interface, the upper layer of the full-screen application interface, or the upper layer of the split-screen application interface, and the shared floating window supports simultaneous display with the traditional application floating window, and the application corresponding to the shared floating window is different from the application corresponding to the application floating window.

[0043] In the related art, when it is necessary to switch back and forth between multiple applications, in order to improve the application switching efficiency and avoid repeated switching of applications between the foreground and the background, multiple application floating windows can be opened to display the application interfaces of different application programs respectively. Figure 1 As shown, the terminal displays the recording interface of the recording application through the first application floating window 11, displays the taxi-hailing interface of the taxi-hailing application through the second application floating window 12, and displays the reading interface of the news application through the third application floating window 13.

[0044] Obviously, due to the limitation of the terminal screen size, multiple application floating windows displayed simultaneously on the terminal may block each other, and multiple application floating windows displayed in a tiled manner may affect the background interface (such as Figure 1 When the user needs to operate the interface elements in the background interface, the position of the application floating window needs to be adjusted frequently.

[0045] In order to avoid mutual occlusion between multiple application floating windows displayed at the same time and reduce the occlusion of the background interface by the floating window display, a shared floating window is provided in the embodiment of the present application. When there are at least two foreground applications using floating window display, at least two foreground applications are displayed through the shared floating window instead of displaying multiple application floating windows. In addition, the user can switch the application displayed in the shared floating window through the application switching operation, thereby improving the efficiency of switching between applications.

[0046] like Figure 2 As shown, when the taxi-hailing application, the news application, and the recording application are all displayed in floating windows, the terminal displays a shared floating window 21, and displays the taxi-hailing interface of the taxi-hailing application in the shared floating window 21, while the reading interface of the news application and the recording interface of the recording application are not displayed temporarily. When the user needs to read the news, he can click the news application icon 22 corresponding to the news application to trigger the terminal to switch the taxi-hailing interface displayed in the shared floating window 21 to the reading interface; when the user needs to record, he can click the recording application icon 23 corresponding to the recording application to trigger the terminal to switch the reading interface displayed in the shared floating window 21 to the recording interface. Obviously, since multiple applications share a shared floating window, it is possible to avoid mutual occlusion between multiple application floating windows displayed at the same time, and reduce the occlusion of the background interface, making it convenient for users to operate the interface elements in the background interface.

[0047] The application switching method provided in the embodiment of the present application can be used in a terminal with a touch display screen, which can be a smart phone, a tablet computer, a digital player, a smart wearable device or a personal computer, etc., and the embodiment of the present application is not limited to this.

[0048] Please refer to Figure 3, which shows a method flow chart of an application switching method provided by an exemplary embodiment of the present application. The method may include the following steps.

[0049] Step 301: Display a first application interface of a first application in a shared floating window. The first application belongs to n foreground applications displayed in a floating window, where n is an integer greater than or equal to 2.

[0050] The shared floating window can be displayed on the upper layer of the main interface or on the upper layer of the full-screen application interface. Figure 2 As shown, the shared floating window 21 is displayed on the upper layer of the main interface.

[0051] In a possible implementation, when there are at least two foreground applications displayed in floating windows, the terminal displays a shared floating window, and displays a first application interface of a first application among the at least two foreground applications in the shared floating window.

[0052] Among them, the n foreground applications can be different applications, or the n foreground applications can include the same application (such as an application that supports multiple openings).

[0053] Optionally, when there is only one foreground application displayed in a floating window, the terminal displays the application interface of the application through the application floating window; when receiving an operation instruction to display another application in a floating window, the terminal displays a shared floating window (cancels display of the application floating window) and displays the application interface of the application in the shared floating window.

[0054] Optionally, when there are n foreground applications displayed in floating windows, the terminal displays the n foreground applications through n application floating windows by default; when a preset instruction (used to trigger the enabling of a shared floating window) is received, the terminal displays the n foreground applications through a shared floating window and cancels the display of the application floating window.

[0055] In a possible implementation, there is an upper limit on the number of foreground applications that the shared floating window corresponds to. For example, the upper limit is 5, that is, the shared floating window supports being shared by a maximum of 5 applications at the same time.

[0056] Step 302: Receive an application switching operation.

[0057] Optionally, the application switching operation is at least one of a touch operation, a voice trigger operation, and a gesture trigger operation, which is not limited in this embodiment.

[0058] In a possible implementation, when the application switching operation is a touch operation, the touch position of the touch operation may be located inside the shared floating window or outside the shared floating window.

[0059] Indicative, such as Figure 2 As shown, when a click operation on an application icon outside the shared floating window 21 is received, the terminal determines that an application switching operation has been received.

[0060] In another possible implementation, the terminal is a device that supports gesture recognition, and gesture recognition refers to using gestures as control instructions to control the terminal to complete a specific task. Optionally, gesture recognition can be performed based on three methods: an algorithm, a neural network, and a gesture sample library. When the gesture detected by the terminal matches a preset gesture, the terminal can determine that an application switching operation has been received.

[0061] In another possible implementation, the terminal is a device that supports voice recognition, and voice recognition refers to using voice as a control instruction to control the terminal to complete a specific task. When the voice detected by the terminal matches the preset voice, such as when the detected voice is "switch application", the mobile terminal can determine that an application switching operation has been received.

[0062] Step 303, in response to the application switching operation, the first application interface displayed in the shared floating window is switched to the second application interface of the second application, and the second application belongs to the n foreground applications.

[0063] Optionally, based on the received application switching operation, the terminal determines the second application to be switched from n foreground applications, thereby switching the first application interface displayed in the shared floating window to the second application interface of the second application, wherein the second application and the first application can be different applications, or can be the same application (such as dual applications logged in to different accounts).

[0064] It should be noted that when switching applications, the terminal only switches the application displayed in the shared floating window, and does not need to cancel the display of the original shared floating window and then create a new shared floating window.

[0065] In a possible implementation, when the application switching operation clearly indicates the application to be switched, the terminal determines the application indicated by the application switching operation as the second application.

[0066] Indicative, such as Figure 2 As shown, when a click operation on the news application icon 22 is received, the terminal determines the news application indicated by the news application icon 22 as the second application program, thereby switching the taxi-hailing interface displayed in the shared floating window 21 to a reading interface.

[0067] In other possible implementations, when the application switching operation is only used to indicate application switching but does not explicitly indicate an application, the terminal determines the second application from the n foreground applications based on the first application.

[0068] By introducing a shared floating window, even if there are multiple applications that use floating window display at the same time, since multiple applications all display their interfaces through the shared floating window, there will be no problem of multiple application floating windows being tiled and blocking each other, and causing a large amount of obstruction to the background interface. At the same time, the shared floating window supports application switching through application switching operations, which facilitates users to switch between multiple applications and improves the efficiency of application switching.

[0069] To summarize, in an embodiment of the present application, when there are at least two foreground applications that use floating window display, the first application interface of the first application in the foreground application is displayed in a shared floating window, and when an application switching operation is received, the second application interface of the second application in the foreground application is switched to be displayed in the shared floating window, so as to achieve switching between multiple floating window applications and improve the efficiency of users switching between different applications; and, since the foreground application that uses floating window display uses the same shared floating window for interface display, the problem of mutual occlusion between floating windows due to the simultaneous display of multiple floating windows can be avoided, and the occlusion of the background interface (main interface or application interface) caused by the floating window can be reduced.

[0070] In actual applications, due to the different display requirements of different applications, different floating window display parameters need to be used when using floating window display. For example, for news applications, a vertical floating window is required for display, while for game applications, a horizontal floating window is required; or, for news applications, the size of the floating window is 600px×900px, while for instant messaging applications, the size of the floating window is 500px×800px. In a possible implementation, before switching to display the application interface, the terminal obtains the first floating window display parameters corresponding to the first application and the second floating window display parameters corresponding to the second application. If the first floating window display parameters corresponding to the first application are different from the second floating window display parameters corresponding to the second application, the terminal adjusts the display state of the shared floating window based on the second floating window display parameters.

[0071] Optionally, the floating window display parameters include floating window size, floating window horizontal or vertical screen status, etc., which are not limited in this embodiment.

[0072] Regarding the triggering method of the application switching operation, in a possible implementation, while displaying the shared floating window, the terminal associates a display switching area in the display area outside the shared floating window. The user can perform the application switching operation through the switching area to switch the application in the shared floating window. An exemplary embodiment is used below to illustrate.

[0073] Please refer to Figure 4 , which shows a method flow chart of an application switching method provided by another exemplary embodiment of the present application. The method may include the following steps.

[0074] Step 401: Display a first application interface of a first application in a shared floating window. The first application belongs to n foreground applications displayed in a floating window, where n is an integer greater than or equal to 2.

[0075] The process of the terminal displaying the shared floating window may refer to the above step 301, which will not be described in detail in this embodiment.

[0076] In the embodiment of the present application, when there are n foreground applications using floating window display, in addition to displaying the shared floating window, the terminal will also display a switching area corresponding to the shared floating window in a display area outside the shared floating window, and the switching area includes application identifiers corresponding to the n foreground applications. The application identifier can be at least one of an application icon and an application name.

[0077] Optionally, the switching area is displayed in association with the shared floating window, that is, when the display position of the shared floating window changes, the display position of the switching area also changes accordingly, so that the relative position with the shared floating window remains unchanged. The switching area can be displayed above, below, on the left or on the right of the shared floating window, and the relative position of the switching area and the shared floating window can be adjusted according to needs, which is not limited in this embodiment.

[0078] Optionally, the display position of the application identifier in the switching area is related to the order in which the applications are displayed in floating windows. For example, when the switching area is located below the shared floating window, the terminal displays the application identifiers from right to left in the switching area according to the order in which the applications are displayed in floating windows from early to late; when the switching area is located on the right side of the shared floating window, the terminal displays the application identifiers from bottom to top in the switching area according to the order in which the applications are displayed in floating windows from early to late.

[0079] Indicative, such as Figure 5 As shown, a switching area 52 is displayed below the shared floating window 51, and a taxi application icon 521 and a news application icon 522 are displayed in the switching area 52.

[0080] It should be noted that, when there is only one foreground application displayed in a floating window, the terminal may also display the application in a shared floating window and display the application identifier of the application in the switching area, or may not display the application identifier.

[0081] Step 402: receiving a selection operation for a target application identifier in a switching area, the switching area including application identifiers corresponding to n foreground applications, and the target application identifier being an application identifier of a second application.

[0082] When the user wants to switch the application displayed in the shared floating window, the application switch can be triggered by selecting the application identifier in the switch area. In a possible implementation, the terminal receives a selection operation on the target application identifier in the switch area and determines the foreground application corresponding to the target application identifier as the second application.

[0083] The selection operation may be a single-click operation, a double-click operation, a long-press operation, a pressing operation, etc., which is not limited in this embodiment.

[0084] Illustratively, when it is necessary to switch to display the reading interface of the news application, the user can click the news application icon 522 in the switching area 52. Accordingly, the terminal receives the click operation on the news application icon 522 and determines the news application of the application to be switched.

[0085] Step 403: In response to the selection operation of the target application identifier, the first application interface displayed in the sharing floating window is switched to the second application interface of the second application program.

[0086] Further, based on the selection operation, the terminal switches the first application interface displayed in the shared floating window to the second application interface. Figure 5 As shown, after receiving a click operation on the news application icon 522, the terminal switches the taxi-hailing interface displayed in the shared floating window 51 to a reading interface.

[0087] Optionally, after switching the application, the display order of the application identifiers in the switching area does not change.

[0088] Obviously, by displaying the application logo of the foreground application in a floating window in the switching area, the user can quickly trigger the switch to the specified application by selecting the application logo, thereby improving the efficiency of application switching.

[0089] In actual application scenarios, in addition to the existing floating window displayed applications, the user may continue to add applications that use floating window display. Accordingly, the terminal needs to update the display content in the shared floating window and the switching area according to the user operation. The terminal updating the display content in the shared floating window and the switching area may include steps 404 to 406.

[0090] Step 404 , in response to a floating window display operation on a third application program outside the n foreground applications, the second application interface displayed in the shared floating window is switched to a third application interface of the third application program.

[0091] In a possible implementation, the user may trigger the terminal to display a third application other than the n foreground applications in a floating window through a floating window display operation, wherein the floating window display operation is used to instruct to display the third application in a floating window.

[0092] Optionally, the floating window display operation can be an application launch operation for a third application, and a trigger operation for a floating window display entrance in the third application; or, the floating window display operation can be a floating window call out operation, and a selection operation for a third application. This embodiment does not limit the specific operation method of the floating window display operation.

[0093] Typically, the third application that performs the floating window display operation is usually an application that the user wants to process immediately. Therefore, based on the floating window display operation, the terminal switches the second application interface displayed in the shared floating window to the third application interface of the third application.

[0094] Indicative, such as Figure 5 As shown, when receiving a floating window display operation for a recording application, the terminal switches the reading interface displayed in the shared floating window 51 to the recording interface of the recording application.

[0095] In a possible implementation, in order to facilitate the user to know the application currently displayed in the shared floating window, the terminal highlights the application identifier corresponding to the currently displayed application in the switching area. The highlighting method can be at least one of the following: low transparency display (other application identifiers are displayed with high transparency), highlight display, non-grayscale display (other application identifiers are displayed in grayscale), stroke display, magnified display, etc. This embodiment does not limit the specific method of highlighting.

[0096] In order to facilitate the user to switch applications later, the terminal needs to add the application identifier of the third application to the switching area. In a possible implementation, due to the display size of the switching area, the number of application identifiers in the switching area has an upper limit. Therefore, when adding application identifiers in the switching area, the terminal needs to detect whether the number of existing application identifiers in the switching area reaches the number threshold. If the number threshold is not reached, execute the following step 405. If the number threshold is reached, execute the following step 406.

[0097] Step 405: In response to n not reaching the quantity threshold, add an application identifier of a third application program in the switching region.

[0098] In a possible implementation, the application identifiers in the switching area are displayed based on the order in which the applications are displayed in floating windows. If the number of existing application identifiers in the switching area does not reach a threshold, the terminal directly displays the application identifier of the third application in the switching area.

[0099] Indicative, such as Figure 5As shown, when the terminal displays the application identifiers from right to left in the switching area 52 in a floating window display order from morning to night according to the application, when a floating window display operation for the recording application is received and the number of existing application identifiers in the switching area 52 (2) does not reach the quantity threshold (for example, 5), the terminal displays the recording application icon 523 on the left side of the taxi application icon 521.

[0100] Step 406, in response to n reaching a quantity threshold, adding an application identifier of a third application in the switching area, and removing an application identifier of a fourth application among the n foreground applications, the fourth application being the first application among the n foreground applications to adopt floating window display.

[0101] In one possible implementation, the application identifiers in the switching area are displayed based on the order in which the applications are displayed in floating windows. If the number of existing application identifiers in the switching area reaches a threshold, the terminal removes the application identifier of the fourth application that is first displayed in a floating window from the switching area, and adds the application identifier of the third application to the switching area.

[0102] In an illustrative example, the order in which the existing applications in the switching area are displayed in floating windows is news application, instant messaging application, taxi application, video application and game application. When a floating window display operation is received for a recording application, since the number of existing applications in the switching area has reached a quantity threshold, the terminal determines the news application as an application to be removed from the switching area.

[0103] Optionally, the removed fourth application is switched to run in the background, or the removed fourth application remains running in the foreground, and the user can restore the application logo of the fourth application to be displayed in the switching area by sliding in the switching area.

[0104] In other possible implementations, in addition to determining the fourth application to be removed based on the order of display in the floating windows, the terminal may also determine the application with the lowest frequency of use as the fourth application based on the usage frequency of each application among the n foreground applications (i.e., the display frequency in the shared floating window); or, based on the application relevance between the n foreground applications and the fourth application, determine the application with the lowest application relevance as the fourth application, which is not limited to this in this embodiment.

[0105] In this embodiment, a switching area is displayed outside the shared floating window and the application identifier of the application is displayed in the switching area, so that the user can quickly switch to a specified application by triggering the application identifier, thereby further improving the switching efficiency and accuracy of the application.

[0106] In addition, when other applications need to be displayed in floating windows, the terminal determines whether to remove some application identifiers from the switching area based on the number of existing application identifiers in the switching area, so as to avoid displaying too many application identifiers in the switching area at the same time, thereby improving the accuracy of subsequent application identifier selection.

[0107] In order to avoid the removal of important applications that the user is concerned about when opening multiple floating window applications, the user can operate the application identifiers in the switching area to remove specified application identifiers from the switching area, thereby ensuring that when new application identifiers are added, the application identifiers of important applications can be retained in the switching area.

[0108] In a possible implementation, in response to the first application control operation on the application identifier corresponding to the fifth application in the switching area, the terminal removes the application identifier corresponding to the fifth application from the switching area and stops displaying the floating window of the fifth application.

[0109] Optionally, the application identifier displayed in the switching area supports at least one application control operation. When receiving the first application control operation on the application identifier, the terminal determines that the floating window display of the application corresponding to the application identifier needs to be canceled, thereby removing the application identifier from the switching area and stopping the floating window display of the application (i.e., the application interface of the application cannot be displayed in the shared floating window by triggering the application identifier switch).

[0110] The first application control operation may be a drag operation on the application identifier along the first direction. For example, the first application control operation is an upward drag operation on the application identifier. The embodiment of the present application does not limit the specific operation method of the first application control operation.

[0111] Indicative, such as Figure 6 As shown, the switching area currently displays a taxi application icon 621, a news application icon 622, and a recording application icon 623. When the upward drag operation of the news application icon 622 is received, the terminal removes the news application icon 622 from the switching area and adjusts the display positions of the taxi application icon 621 and the recording application icon 623. When the upper limit of the number of application identifiers in the switching area is 3, since the news application icon 622 is removed, even if other applications using floating window display are subsequently opened, the recording application icon 623 (the recording application uses floating window display the earliest) will not be removed.

[0112] In another possible implementation, the user may also use an application control operation to display a specified application identifier in a fixed manner in the switching area. In response to a second application control operation on an application identifier corresponding to a fifth application in the switching area, the application identifier corresponding to the fifth application is fixedly displayed in the switching area, wherein the fifth application remains displayed in a floating window after being fixedly displayed in the switching area.

[0113] Optionally, when a second application control operation is received on the application identifier, the terminal determines that the application corresponding to the application identifier needs to be kept displayed in a floating window, thereby fixing the application identifier in the switching area. After the application identifier is fixedly displayed, the number of application identifiers in subsequent switching areas reaches a quantity threshold. Even if the application corresponding to the fixedly displayed application identifier is the first to use a floating window display, it will not be removed.

[0114] The second application control operation may be a drag operation on the application identifier along the second direction. For example, the second application control operation is a downward drag operation on the application identifier. The embodiment of the present application does not limit the specific operation method of the second application control operation.

[0115] Optionally, the terminal displays a fixed logo (such as a corner mark display) around the fixedly displayed application logo, so as to prompt the user that the application logo is fixed in the switching area.

[0116] Indicative, such as Figure 7 As shown, the switching area currently displays a taxi application icon 721, a news application icon 722, and a recording application icon 723. When a downward drag operation is received on the recording application icon 723, the terminal fixes the recording application icon 723 in the switching area (marked with a corner mark). When the upper limit of the number of application identifiers in the switching area is 3, since the recording application icon 723 is fixedly displayed, even if other applications using floating window display are subsequently opened, the recording application icon 723 (the recording application is the earliest to use floating window display) will not be removed.

[0117] Optionally, when receiving the first application control operation on the fixedly displayed application identifier, the terminal cancels the fixed display of the application identifier.

[0118] In this embodiment, by performing application control operations on the application identifiers displayed in the switching area, the specified application identifier can be removed, or the specified application identifier can be fixedly displayed in the switching area to avoid the removal of important applications that have been opened due to the opening of new applications.

[0119] In the above embodiment, since the application identifier is displayed in the switching area, the user can quickly switch to the specified application by selecting the application identifier. In another possible implementation, the terminal can implement application switching by an application switching operation that does not explicitly indicate the specified application, which is described below using an exemplary embodiment.

[0120] Please refer to Figure 8 , which shows a method flow chart of an application switching method provided by another exemplary embodiment of the present application. The method may include the following steps.

[0121] Step 801: Display a first application interface of a first application in a shared floating window. The first application belongs to n foreground applications displayed in a floating window, where n is an integer greater than or equal to 2.

[0122] The process of the terminal displaying the shared floating window may refer to the above step 301, which will not be described in detail in this embodiment.

[0123] In an embodiment of the present application, when there are n foreground applications that use floating window display, the terminal will, in addition to displaying the shared floating window, also display a switching area corresponding to the shared floating window in the display area outside the shared floating window. The switching area does not directly display the application identifiers of the n foreground applications, but instead displays the stacking effect of multiple application floating windows, thereby implying the existence of multiple applications that use floating window display.

[0124] The switching area is displayed in association with the shared floating window, that is, when the display position of the shared floating window changes, the display position of the switching area also changes accordingly, so that the relative position with the shared floating window remains unchanged. The switching area can be displayed above, below, on the left or on the right of the shared floating window, which is not limited in this embodiment.

[0125] In a possible implementation, the switching area displays a floating window stacking effect through a preset floating window stacking effect diagram, wherein different numbers of floating windows correspond to different floating window stacking effect diagrams, or different numbers of floating windows correspond to the same floating window stacking effect diagram.

[0126] Indicative, such as Fig. 9 As shown, when the applications displayed in floating windows include a taxi application, a news application, and a recording application, the terminal displays a floating window stacking effect diagram in the switching area 92 below the shared floating window 91.

[0127] Step 802: receiving a trigger operation on a switching area, where the switching area is used to display a floating window stacking effect.

[0128] Different from the above embodiment where it is necessary to select an application identifier to trigger application switching, in this embodiment, the user only needs to perform a trigger operation on the switching area to trigger the shared floating window to switch the application interface.

[0129] Among them, the trigger operation for the switching area can be a single-click operation, a double-click operation, a long press operation, a sliding operation, a pressing operation, etc. The embodiment of the present application does not limit the specific form of the trigger operation.

[0130] Indicative, such as Fig. 9 As shown, when it is necessary to switch the taxi-hailing interface currently displayed in the shared floating window 91, the user can click the switching area 92.

[0131] Step 803, in response to a triggering operation on the switching area, determine a second application based on the application switching order of the n foreground applications, and switch the first application interface displayed in the shared floating window to the second application interface of the second application.

[0132] Since the triggering operation on the switching area can only indicate the need for application switching but cannot clearly indicate the application to be switched, the terminal needs to determine the second application to be switched based on the application switching sequence of the n foreground applications.

[0133] In a possible implementation, the application switching order is determined based on the order in which n foreground applications are displayed in floating windows. Accordingly, the terminal determines the application after or before the first application in the application switching order as the second application based on the received trigger operation.

[0134] Indicative, such as Fig. 9 As shown, the application switching order is taxi application → news application → recording application. When the taxi interface of the taxi application is currently displayed in the shared floating window 91, if a click operation on the switching area 92 is received, the terminal will switch the taxi interface in the shared floating window 91 to the reading interface of the news application; if a click operation on the switching area 92 is received again, the terminal will switch the reading interface in the shared floating window 91 to the recording interface of the recording application; if a click operation on the switching area 92 is received again, the terminal will switch the recording interface in the shared floating window 91 to the taxi interface.

[0135] In actual application scenarios, in addition to the existing floating window displayed applications, the user may continue to add applications that use floating window display. Accordingly, the terminal needs to update the display content in the shared floating window and the switching area according to the user operation. The terminal updating the display content in the shared floating window and the switching area may include steps 804 to 805.

[0136] Step 804 , in response to a floating window display operation on a third application program outside the n foreground applications, the second application interface displayed in the shared floating window is switched to a third application interface of the third application program.

[0137] In a possible implementation, the user may trigger the terminal to display a third application other than the n foreground applications in a floating window through a floating window display operation, wherein the floating window display operation is used to instruct to display the third application in a floating window.

[0138] Optionally, the floating window display operation can be an application launch operation for a third application, and a trigger operation for a floating window display entrance in the third application; or, the floating window display operation can be a floating window call out operation, and a selection operation for a third application. This embodiment does not limit the specific operation method of the floating window display operation.

[0139] Typically, the third application that performs the floating window display operation is usually an application that the user wants to process immediately. Therefore, based on the floating window display operation, the terminal switches the second application interface displayed in the shared floating window to the third application interface of the third application.

[0140] Indicative, such as Fig.10 As shown, when a floating window display operation for a recording application is received, the terminal switches the taxi-hailing interface displayed in the shared floating window 1001 to the recording interface of the recording application.

[0141] Step 805: based on the number of foreground applications displayed in floating windows, update the floating window stacking effect in the switching area.

[0142] In order to more realistically simulate the stacking effect of multiple application floating windows, in a possible implementation, the terminal may update the floating window stacking effect in the switching area based on the number of foreground applications displayed in floating windows (ie, n+1).

[0143] Optionally, the terminal stores floating window stacking effect diagrams corresponding to different numbers, and the terminal obtains floating window stacking effect diagrams corresponding to number n+1, and displays the obtained floating window stacking effect diagram in the switching area to simulate the effect of adding application floating windows.

[0144] In some embodiments, different quantities correspond to different floating window stacking effect diagrams, and an upper limit is set. When the upper limit is reached, different quantities correspond to the same floating window stacking effect diagram.

[0145] Indicative, such as Fig.10 As shown, when there are two foreground applications using floating window display, the terminal displays a double floating window stacking effect diagram in the switching area 1002; when a new foreground application using floating window display is added, the terminal displays a three-floating window stacking effect diagram in the switching area 1002. When a new foreground application using floating window display is added later, the terminal keeps displaying the three-floating window stacking effect diagram in the switching area 1002.

[0146] It should be noted that, when the number of foreground applications displayed in floating windows decreases, the terminal can update the floating window stacking effect in the switching area according to the reduced number, and this embodiment will not be repeated here.

[0147] In this embodiment, a floating window stacking effect is displayed in the switching area around the shared floating window, and when a trigger operation is received on the switching area, the applications are switched in an orderly manner based on the display order of the applications. While achieving application switching, the occlusion of the background interface by the switching area is further reduced.

[0148] In the above embodiment, application switching is performed through a switching area outside a shared floating window. In other possible implementations, the terminal receives an application switching operation through a floating window menu inside a shared floating window, without displaying a switching area outside the shared floating window, thereby further reducing the occlusion of the background interface when displaying the shared floating window. The following is an exemplary embodiment for explanation.

[0149] Please refer to Fig.11 , which shows a method flow chart of an application switching method provided by another exemplary embodiment of the present application. The method may include the following steps.

[0150] Step 1101: Display a first application interface of a first application in a shared floating window. The first application belongs to n foreground applications displayed in a floating window, where n is an integer greater than or equal to 2.

[0151] The process of the terminal displaying the shared floating window may refer to the above step 301, which will not be described in detail in this embodiment.

[0152] Step 1102, in response to a triggering operation on a menu call-out control in a shared floating window, a floating window menu is displayed in the shared floating window, and the floating window menu includes application identifiers corresponding to n foreground applications.

[0153] In one possible implementation, in order to facilitate subsequent application switching, a menu call-out control is provided in the shared floating window. When a trigger operation on the menu call-out control is received, the terminal displays a floating window menu in the shared floating window. The floating window menu includes application identifiers corresponding to the n foreground applications currently displayed in the floating window.

[0154] Optionally, the menu call-out control is set in a floating window operation area of ​​the shared floating window. The floating window operation area can be located at the top, bottom, left or right side of the shared floating window, which is not limited in this embodiment.

[0155] Optionally, in addition to the application logo, the floating menu may also display other controls, such as a full-screen control, a suspend control, etc., which is not limited in this embodiment.

[0156] Indicative, such as Fig.12 As shown, when a click operation on the menu call-out control 1202 in the shared floating window 1201 is received, the terminal displays a floating window menu 1202 in the shared floating window 1201 , and the floating window menu 1202 displays the application icon of the foreground application currently displayed in the floating window.

[0157] Step 1103: Receive a selection operation on a target application identifier in the floating window menu, where the target application identifier is an application identifier of a second application program.

[0158] Furthermore, the user can trigger application switching by selecting an application identifier in the floating window menu. Accordingly, the terminal receives a selection operation on the target application identifier in the floating window menu, and determines the application corresponding to the target application identifier as the second application to be switched.

[0159] Indicative, such as Fig.12 As shown, when a click operation on the recording application icon 1204 in the floating menu 1203 is received, the terminal determines the recording application of the application to be switched.

[0160] Step 1104 , in response to a selection operation on a target application identifier, the first application interface displayed in the sharing floating window is switched to a second application interface of a second application program.

[0161] Further, the terminal switches the first application interface displayed in the shared floating window to the second application interface, and closes the floating window menu. The user can repeat the above steps to achieve further application switching.

[0162] Indicative, such as Fig.12 As shown, the terminal switches the reading interface displayed in the shared floating window 1201 to the recording interface of the recording application, and closes the floating window menu 1203.

[0163] In this embodiment, a floating window menu call-out control is set in the shared floating window, so that the floating window menu is called out in the shared floating window through the control, and application switching is achieved by selecting the application identifier displayed in the floating window menu. Since the floating window menu is displayed inside the shared floating window, the obstruction of the background interface can be further reduced.

[0164] In some application scenarios, the user may need to perform full-screen operation on the application displayed in the floating window. In one possible implementation, in response to the full-screen display operation, the second application interface is displayed in full screen, wherein the full-screen display operation can be triggered by the full-screen control in the floating window menu.

[0165] While the second application interface is displayed in full screen, the terminal displays a shared floating window on an upper layer of the second application interface and switches the application interface displayed in the shared floating window, wherein the switched application interface is different from the second application interface.

[0166] Optionally, the terminal updates the application identifier displayed in the switching area corresponding to the shared floating window (for example, removes the application identifier corresponding to the second application), or updates the floating window stacking effect in the switching area.

[0167] In some application scenarios, users may need to view at least two related applications on the same screen. Therefore, in order to meet the actual needs of users in different scenarios, in one possible implementation, the terminal can switch between shared floating window display and multi-application floating window display based on the floating window control operation. An exemplary embodiment is used below to illustrate this.

[0168] Please refer to Fig.13 , which shows a method flow chart of an application switching method provided by another exemplary embodiment of the present application. The method may include the following steps.

[0169] Step 1301, displaying n application floating windows, where the n application floating windows are used to display application interfaces of n foreground application programs.

[0170] In a possible implementation, by default, when there are n foreground applications that need to be displayed in floating windows, the terminal opens n application floating windows, so that the application interfaces of the n foreground applications are displayed through the n application floating windows. The n application floating windows are displayed in a tiled manner, and the n application floating windows may or may not be blocked from each other. The user can adjust the display position and size of each application floating window by dragging.

[0171] Indicative, such as Fig.14 As shown, the terminal displays the recording interface of the recording application in the first application floating window 1401 , displays the reading interface of the news application in the second application floating window 1402 , and displays the taxi-hailing interface of the taxi-hailing application in the third application floating window 1403 .

[0172] Step 1302: In response to the first floating window control operation, stop displaying n application floating windows and display a shared floating window.

[0173] In a possible implementation, the terminal sets the first floating window control operation as a trigger operation of "multi-application floating window display → shared floating window display", wherein the first floating window control operation can be a voice control operation, a gesture control operation or a touch operation, which is not limited in this embodiment.

[0174] When the first floating window control operation is received, it indicates that the user wants to sort out the n application floating windows, thereby triggering the stopping of displaying the n application floating windows and displaying the shared floating window.

[0175] Indicative, such as Fig.14As shown, when the user shakes the terminal, the terminal determines that the first floating window control operation is received, thereby stopping displaying the application floating window and displaying the sharing floating window 1404. Among them, the switching area below the sharing floating window 1404 displays a taxi application icon 1405, a news application icon 1406, and a recording application icon 1407.

[0176] Step 1303: Display a first application interface of a first application in a shared floating window, where the first application belongs to n foreground applications displayed in a floating window, where n is an integer greater than or equal to 2.

[0177] Further, the terminal displays the application interface of the first application among the n foreground applications in a shared floating window, where the first application can be any one of the n foreground applications, or the first application is the most recently used one of the n foreground applications, or the first application is the latest one of the n foreground applications to be displayed in a floating window, and this embodiment does not limit this.

[0178] Indicative, such as Fig.14 As shown, the terminal displays the taxi-hailing interface of the taxi-hailing application in the shared floating window 1404 .

[0179] Step 1304: Receive an application switching operation.

[0180] Step 1305 , in response to the application switching operation, the first application interface displayed in the shared floating window is switched to the second application interface of the second application, where the second application belongs to the n foreground applications.

[0181] The implementation of steps 1034 to 1035 may refer to steps 302 to 303, and will not be described in detail in this embodiment.

[0182] Step 1306: In response to the second floating window control operation, stop displaying the shared floating window and display n application floating windows.

[0183] In a possible implementation, the terminal sets the second floating window control operation as a trigger operation of "shared floating window display → multi-application floating window display", wherein the second floating window control operation can be a voice control operation, a gesture control operation or a touch operation, and the second floating window control operation can be different from the first floating window control operation, or can be the same as the first floating window control operation, which is not limited in this embodiment.

[0184] When the first floating window control operation is received, it indicates that the user wants the terminal to display multiple applications in a tiled manner on the same screen, thereby triggering the cessation of displaying the shared floating window and resuming displaying the n application floating windows.

[0185] Indicative, such as Fig.14As shown, when the user shakes the terminal again, the terminal determines that the second floating window control operation is received, thereby stopping displaying the shared floating window 1404 and resuming displaying the application floating window. The application icons displayed in the switching area below the shared floating window 1404 stop displaying synchronously.

[0186] In this embodiment, the user switches between multi-application floating window display and shared floating window display through floating window control operations, which can not only ensure the neatness of the floating window display, but also meet the user's needs for displaying multiple applications on the same screen.

[0187] In the above embodiments, since multiple foreground applications share the same shared floating window, in order to determine whether the floating window closing operation triggered by the user is for a single application or for all applications, in a possible implementation, in response to the floating window closing operation on the shared floating window, and there are at least two foreground applications displayed in floating windows, the terminal displays a first closing confirmation control and a second closing confirmation control. The first closing confirmation control is used to indicate closing all foreground applications, and the second closing confirmation control is used to indicate closing the application currently displayed in the shared floating window.

[0188] Further, in response to triggering the first close confirmation control, the terminal closes the shared floating window and stops displaying the floating windows of the n foreground applications; in response to triggering the second close confirmation control, the terminal stops displaying the floating window of the second application.

[0189] Indicative, such as Fig.15 As shown, when a click operation is received on the floating window close control 1502 in the shared floating window 1501, since there are three foreground applications (respectively, a taxi application, a news application, and a recording application) that use floating windows for display, the terminal displays a first close confirmation control 1503 and a second close confirmation control 1504. When a click operation is received on the first close confirmation control 1503, the terminal closes all foreground applications and stops displaying the shared floating window 1501; when a click operation is received on the second close confirmation control 1504, the terminal continues to display the shared floating window 1501 and only closes the taxi application currently displayed in the shared floating window 1501.

[0190] In this embodiment, when multiple applications are displayed in floating windows through a shared floating window, if a floating window close operation is received, the terminal displays a close confirmation control for the user to choose to close the current application or close all applications, avoiding accidentally closing all applications, which helps to improve the closing accuracy of the floating window application.

[0191] Please refer to Fig.16, which shows a structural block diagram of an application switching device provided by an embodiment of the present application. The device can be implemented as all or part of a terminal through software, hardware, or a combination of both. The device includes:

[0192] Display module 1601, configured to display a first application interface of a first application in a shared floating window, where the first application belongs to n foreground applications displayed in a floating window, where n is an integer greater than or equal to 2;

[0193] The receiving module 1602 is used to receive an application switching operation;

[0194] The display module 1601 is used to switch the first application interface displayed in the shared floating window to a second application interface of a second application in response to the application switching operation, where the second application belongs to the n foreground applications.

[0195] Optionally, the receiving module 1602 includes:

[0196] A first receiving unit, configured to receive the application switching operation through a switching area corresponding to the shared floating window, wherein the switching area is displayed in association with the shared floating window and is located outside a display area of ​​the shared floating window;

[0197] or,

[0198] The second receiving unit is used to receive the application switching operation through a floating window menu in the shared floating window.

[0199] Optionally, the first receiving unit is used to:

[0200] receiving a selection operation on a target application identifier in the switching area, wherein the switching area includes application identifiers corresponding to the n foreground applications, and the target application identifier is an application identifier of the second application;

[0201] The display module 1601 is used for:

[0202] In response to a selection operation on the target application identifier, the first application interface displayed in the shared floating window is switched to the second application interface of the second application program.

[0203] Optionally, the display module 1601 is further used for:

[0204] In response to a floating window display operation on a third application program outside the n foreground applications, switching the second application interface displayed in the shared floating window to a third application interface of the third application program;

[0205] In response to n not reaching the quantity threshold, adding the application identifier of the third application in the switching area;

[0206] In response to n reaching a quantity threshold, the application identifier of the third application is added to the switching area, and the application identifier of the fourth application among the n foreground applications is removed, and the fourth application is the first application among the n foreground applications to use a floating window display.

[0207] Optionally, the display module 1601 is further used for:

[0208] In response to a first application control operation on an application identifier corresponding to a fifth application in the switching area, removing the application identifier corresponding to the fifth application from the switching area, and stopping the floating window display of the fifth application;

[0209] In response to a second application control operation on an application identifier corresponding to a fifth application in the switching area, the application identifier corresponding to the fifth application is fixedly displayed in the switching area, wherein the fifth application maintains a floating window display after being fixedly displayed in the switching area.

[0210] Optionally, the first receiving unit is further used to:

[0211] receiving a triggering operation on the switching area, where the switching area is used to display a floating window stacking effect;

[0212] The display module 1601 is used for:

[0213] In response to a triggering operation on the switching area, the second application is determined based on an application switching order of the n foreground applications, and the first application interface displayed in the shared floating window is switched to the second application interface of the second application.

[0214] Optionally, the display module 1601 is further used for:

[0215] In response to a floating window display operation on a third application program outside the n foreground applications, switching the second application interface displayed in the shared floating window to a third application interface of the third application program;

[0216] Based on the number of foreground applications displayed in floating windows, the floating window stacking effect in the switching area is updated.

[0217] Optionally, the second receiving unit is used to:

[0218] In response to a triggering operation on a menu call-out control in the shared floating window, displaying the floating window menu in the shared floating window, wherein the floating window menu includes application identifiers corresponding to the n foreground applications;

[0219] receiving a selection operation on a target application identifier in the floating window menu, where the target application identifier is an application identifier of the second application program;

[0220] The display module 1601 is used for:

[0221] In response to a selection operation on the target application identifier, the first application interface displayed in the shared floating window is switched to the second application interface of the second application program.

[0222] Optionally, the device further comprises:

[0223] An adjustment module is used to adjust the display state of the shared floating window based on the second floating window display parameter in response to the first floating window display parameter corresponding to the first application being different from the second floating window display parameter corresponding to the second application.

[0224] Optionally, the display module 1601 is further used for:

[0225] Displaying n application floating windows, where the n application floating windows are used to display application interfaces of the n foreground application programs;

[0226] In response to the first floating window control operation, the n application floating windows are stopped from being displayed, and the shared floating window is displayed.

[0227] Optionally, the display module 1601 is further used for:

[0228] In response to the second floating window control operation, the shared floating window is stopped from being displayed, and the n application floating windows are displayed.

[0229] Optionally, the device further comprises a closing module, wherein the closing module is configured to:

[0230] In response to a floating window closing operation on the shared floating window, and there are at least two foreground applications using floating window display, displaying a first closing confirmation control and a second closing confirmation control;

[0231] In response to a triggering operation on the first closing confirmation control, closing the shared floating window, and stopping the floating window display of the n foreground applications;

[0232] In response to the triggering operation of the second close confirmation control, the floating window display of the second application is stopped.

[0233] Optionally, the display module 1601 is further used for:

[0234] In response to the full-screen display operation, displaying the second application interface in full screen;

[0235] The shared floating window is displayed on an upper layer of the second application interface, and the application interface displayed in the shared floating window is switched, wherein the switched application interface is different from the second application interface.

[0236] To summarize, in an embodiment of the present application, when there are at least two foreground applications that use floating window display, the first application interface of the first application in the foreground application is displayed in a shared floating window, and when an application switching operation is received, the second application interface of the second application in the foreground application is switched to be displayed in the shared floating window, so as to achieve switching between multiple floating window applications and improve the efficiency of users switching between different applications; and, since the foreground application that uses floating window display uses the same shared floating window for interface display, the problem of mutual occlusion between floating windows due to the simultaneous display of multiple floating windows can be avoided, and the occlusion of the background interface (main interface or application interface) caused by the floating window can be reduced.

[0237] Please refer to Fig.17 , which shows a block diagram of a terminal structure provided by an exemplary embodiment of the present application. The terminal in the present application may include one or more of the following components: a processor 1710 and a memory 1720.

[0238] The processor 1710 may include one or more processing cores. The processor 1710 uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the terminal and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1720, and calling data stored in the memory 1720. Optionally, the processor 1710 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 1710 can integrate one or more combinations of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content that needs to be displayed on the touch display; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1710, but may be implemented by a separate chip.

[0239] The memory 1720 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1720 includes a non-transitory computer-readable storage medium. The memory 1720 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1720 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the terminal (such as audio data, a phone book), etc.

[0240] The terminal in the embodiment of the present application also includes a display screen 1730. The display screen 1730 is used to display images, and it can be a full screen, a special-shaped screen, a curved screen, a folding screen, or a double-sided screen, which is not limited in the embodiment of the present application. In addition, the display screen 1730 can also have a touch function, and the user can touch the elements in the interface with a finger or a stylus.

[0241] In addition, those skilled in the art will appreciate that the structure of the terminal shown in the above drawings does not constitute a limitation on the terminal, and the terminal may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the terminal also includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a speaker, a microphone, a power supply, and other components, which will not be described in detail here.

[0242] An embodiment of the present application also provides a computer-readable storage medium, which stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the application switching method described in the above embodiment.

[0243] The embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the application switching method provided in the above embodiment.

[0244] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0245] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. An application switching method, characterized in that: The method comprises: Displaying a first application interface of a first application in a shared floating window, the shared floating window being shared by n foreground applications displayed in floating windows, the first application belonging to the n foreground applications displayed in floating windows, n being an integer greater than or equal to 2, and the shared floating window supporting responses to operations in the first application interface; receiving an application switching operation through a switching area corresponding to the shared floating window, the switching area being displayed in association with the shared floating window, and the switching area being located outside a display area of ​​the shared floating window; or receiving the application switching operation through a floating window menu in the shared floating window; In response to the application switching operation, the first application interface displayed in the shared floating window is switched to the second application interface of a second application, the second application belongs to the n foreground applications, and the shared floating window supports responding to operations within the second application interface.

2. The method according to claim 1, characterized in that The receiving the application switching operation through the switching area corresponding to the shared floating window includes: receiving a selection operation on a target application identifier in the switching area, wherein the switching area includes application identifiers corresponding to the n foreground applications, and the target application identifier is an application identifier of the second application; The step of switching the first application interface displayed in the shared floating window to a second application interface of a second application program in response to the application switching operation includes: In response to a selection operation on the target application identifier, the first application interface displayed in the shared floating window is switched to the second application interface of the second application program.

3. The method according to claim 2, characterized in that The method further comprises: In response to a floating window display operation on a third application program outside the n foreground applications, switching the second application interface displayed in the shared floating window to a third application interface of the third application program; In response to n not reaching the quantity threshold, adding the application identifier of the third application in the switching area; In response to n reaching a quantity threshold, the application identifier of the third application is added to the switching area, and the application identifier of the fourth application among the n foreground applications is removed, and the fourth application is the first application among the n foreground applications to use a floating window display.

4. The method according to claim 2, characterized in that: The method further comprises: In response to a first application control operation on an application identifier corresponding to a fifth application in the switching area, removing the application identifier corresponding to the fifth application from the switching area, and stopping the floating window display of the fifth application; In response to a second application control operation on an application identifier corresponding to a fifth application in the switching area, the application identifier corresponding to the fifth application is fixedly displayed in the switching area, wherein the fifth application maintains a floating window display after being fixedly displayed in the switching area.

5. The method according to claim 1, characterized in that The receiving the application switching operation through the switching area corresponding to the shared floating window includes: receiving a triggering operation on the switching area, where the switching area is used to display a floating window stacking effect; The step of switching the first application interface displayed in the shared floating window to a second application interface of a second application program in response to the application switching operation includes: In response to a triggering operation on the switching area, the second application is determined based on an application switching order of the n foreground applications, and the first application interface displayed in the shared floating window is switched to the second application interface of the second application.

6. The method according to claim 5, characterized in that The method further comprises: In response to a floating window display operation on a third application program outside the n foreground applications, switching the second application interface displayed in the shared floating window to a third application interface of the third application program; Based on the number of foreground applications displayed in floating windows, the floating window stacking effect in the switching area is updated.

7. The method according to claim 1, characterized in that The receiving the application switching operation through a floating window menu in the shared floating window includes: In response to a triggering operation on a menu call-out control in the shared floating window, displaying the floating window menu in the shared floating window, wherein the floating window menu includes application identifiers corresponding to the n foreground applications; receiving a selection operation on a target application identifier in the floating window menu, where the target application identifier is an application identifier of the second application program; The step of switching the first application interface displayed in the shared floating window to a second application interface of a second application program in response to the application switching operation includes: In response to a selection operation on the target application identifier, the first application interface displayed in the shared floating window is switched to the second application interface of the second application program.

8. The method according to any one of claims 1 to 7, characterized in that: Before, in response to the application switching operation, switching the first application interface displayed in the shared floating window to a second application interface of a second application, the method further includes: In response to a first floating window display parameter corresponding to the first application being different from a second floating window display parameter corresponding to the second application, a display state of the shared floating window is adjusted based on the second floating window display parameter.

9. The method according to any one of claims 1 to 7, characterized in that: Before displaying the first application interface of the first application in the shared floating window, the method includes: Displaying n application floating windows, where the n application floating windows are used to display application interfaces of the n foreground application programs; In response to the first floating window control operation, the n application floating windows are stopped from being displayed, and the shared floating window is displayed.

10. The method according to claim 9, characterized in that The method further comprises: In response to the second floating window control operation, the shared floating window is stopped from being displayed, and the n application floating windows are displayed.

11. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to a floating window closing operation on the shared floating window, and there are at least two foreground applications using floating window display, displaying a first closing confirmation control and a second closing confirmation control; In response to a triggering operation on the first closing confirmation control, closing the shared floating window, and stopping the floating window display of the n foreground applications; In response to the triggering operation of the second close confirmation control, the floating window display of the second application is stopped.

12. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to the full-screen display operation, displaying the second application interface in full screen; The shared floating window is displayed on an upper layer of the second application interface, and the application interface displayed in the shared floating window is switched, wherein the switched application interface is different from the second application interface.

13. An application switching device, characterized in that: The device comprises: a display module, configured to display a first application interface of a first application in a shared floating window, the shared floating window being shared by n foreground applications displayed in floating windows, the first application belonging to the n foreground applications displayed in floating windows, n being an integer greater than or equal to 2, and the shared floating window supporting responses to operations in the first application interface; a receiving module, configured to receive an application switching operation through a switching area corresponding to the shared floating window, the switching area being displayed in association with the shared floating window and being located outside a display area of ​​the shared floating window; or, receiving the application switching operation through a floating window menu in the shared floating window; The display module is used to switch the first application interface displayed in the shared floating window to the second application interface of a second application in response to the application switching operation, the second application belongs to the n foreground applications, and the shared floating window supports responding to operations within the second application interface.

14. A terminal, characterized in that: The terminal includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the application switching method according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the application switching method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Interface display method and electronic equipment

    CN111399715A

  • Interface display method and device, terminal and storage medium

    CN112241227A

Cited By

  • Application switching method and apparatus, terminal and storage medium

    WO2022166645A1