US-12619450-B2 - Application switching method, terminal and storage medium
Abstract
Provided are an application switching method, a terminal and a storage medium, which belong to the technical field of human-machine interaction. The method includes: displaying a first application interface of a first application in a shared floating window, where the first application is one of n foreground application each adopting a floating window-dependent display mode, and n is an integer greater than or equal to 2; receiving an application switching operation; and 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, where the second application is one of the n foreground applications.
Inventors
- Boyu MO
Assignees
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
Dates
- Publication Date
- 20260505
- Application Date
- 20230804
- Priority Date
- 20210207
Claims (20)
- 1 . An application switching method, comprising: displaying a first application interface of a first application in a shared floating window, wherein the first application is one of n foreground applications each adopting a floating window-dependent display mode in which mode a respective application adopts a floating window for display and function execution, and n is an integer greater than or equal to 2; the shared floating window is configured to be shared by the n foreground applications in such a manner that each of the n foreground applications displays its respective application interface through the shared floating window and only an application interface of one of the n foreground application is displayed in the shared floating window at a time, and an application whose application interface is displayed in the shared floating window is capable of executing its application functions in the shared floating window; receiving an application switching operation; and in response to the application switching operation, switching, in the shared floating window, the first application interface to a second application interface of a second application, wherein the second application is one of the n foreground applications.
- 2 . The method of claim 1 , wherein receiving the application switching operation comprises: receiving the application switching operation through a switching area corresponding to the shared floating window, wherein displaying of the switching area is associated with displaying of the shared floating window, and the switching area is located outside a display area of the shared floating window.
- 3 . The method of claim 1 , wherein receiving the application switching operation comprises: receiving the application switching operation through a floating window menu in the shared floating window.
- 4 . The method of claim 2 , wherein receiving the application switching operation through the switching area corresponding to the shared floating window comprises: receiving a selection operation performed on a target application identifier in the switching area, wherein the switching area comprises application identifiers corresponding to the n foreground applications, and the target application identifier is an application identifier of the second application; and switching, in the shared floating window, the first application interface to the second application interface of the second application in response to the application switching operation, comprises: in response to the selection operation performed on the target application identifier, switching, in the shared floating window, the first application interface to the second application interface of the second application.
- 5 . The method of claim 4 , wherein the method further comprises: in response to a floating window display operation for a third application, switching, in the shared floating window, the second application interface to a third application interface of the third application, wherein the third application is outside the n foreground applications; in response to n being smaller than a threshold number, adding an application identifier of the third application into the switching area; and in response to n being equal to or greater than the threshold number, adding the application identifier of the third application into the switching area, and removing an application identifier of a fourth application in the n foreground applications.
- 6 . The method of claim 5 , wherein the method further comprises: determining, as the fourth application, an application of the n foreground applications that first adopts the floating window-dependent display mode; or determining, as the fourth application, an application of the n foreground applications that has a lowest usage frequency; or determining, as the fourth application, an application of the n foreground applications that has a lowest relevance to the third application.
- 7 . The method of claim 4 , wherein the method further comprises: in response to a first application-control operation performed 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-dependent display mode of the fifth application; and in response to a second application-control operation performed on the application identifier corresponding to the fifth application in the switching area, making the application identifier corresponding to the fifth application fixedly displayed in the switching area, wherein the floating window-dependent display mode of the fifth application is maintained after the application identifier corresponding to the fifth application is fixedly displayed in the switching area.
- 8 . The method of claim 2 , wherein receiving the application switching operation through the switching area corresponding to the shared floating window comprises: receiving a trigger operation performed on the switching area, wherein the switching area is configured to show a floating window stacking effect; and switching, in the shared floating window, the first application interface to the second application interface of the second application in response to the application switching operation, comprises: in response to the trigger operation performed on the switching area, determining the second application based on an application switching order of the n foreground applications, and switching, in the shared floating window, the first application interface to the second application interface of the second application.
- 9 . The method of claim 8 , wherein the method further comprises: in response to a floating window display operation performed on a third application, switching, in the shared floating window, the second application interface to a third application interface of the third application, wherein the third application is outside the n foreground applications; and updating the floating window stacking effect in the switching area, based on the number of the foreground applications adopting the floating window-dependent display mode.
- 10 . The method of claim 3 , wherein receiving the application switching operation through the floating window menu in the shared floating window comprises: in response to a trigger operation performed on a menu callout control in the shared floating window, displaying the floating window menu in the shared floating window, wherein the floating window menu comprises application identifiers corresponding to the n foreground applications; and receiving a selection operation performed on a target application identifier in the floating window menu, wherein the target application identifier is an application identifier of the second application; and switching, in the shared floating window, the first application interface to the second application interface of the second application in response to the application switching operation, comprises: in response to the selection operation performed on the target application identifier, switching, in the shared floating window, the first application interface to the second application interface of the second application.
- 11 . The method of claim 1 , wherein before switching, in the shared floating window, the first application interface to the second application interface of the second application in response to the application switching operation, the method further comprises: 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, adjusting a display state of the shared floating window based on the second floating window display parameter.
- 12 . The method of claim 1 , wherein before displaying the first application interface of the first application in the shared floating window, the method comprises: displaying n application floating windows, wherein the n application floating windows are configured to display application interfaces of the n foreground applications respectively; and in response to a first floating window control operation, stopping displaying the n application floating windows, and displaying the shared floating window.
- 13 . The method of claim 12 , wherein the method further comprises: in response to a second floating window control operation, stopping displaying of the shared floating window, and displaying the n application floating windows.
- 14 . The method of claim 1 , wherein the method further comprises: in response to a floating window closing operation performed on the shared floating window when there are at least two foreground applications adopting the floating window-dependent display mode, displaying a first close confirmation control and a second close confirmation control; in response to a trigger operation performed on the first close confirmation control, closing the shared floating window and stopping the floating window-dependent display modes of the n foreground applications; and in response to a trigger operation performed on the second close confirmation control, stopping the floating window-dependent display mode of the second application.
- 15 . The method of claim 1 , wherein the method further comprises: in response to a full-screen display operation, displaying the second application interface in full screen; and displaying the shared floating window on an upper layer of the second application interface, and switching the application interface displayed in the shared floating window, wherein an application interface switched to is different from the second application interface.
- 16 . The method of claim 2 , wherein the displaying of the switching area being associated with the displaying of the shared floating window comprises: changing a display position of the switching area in response to a change of a display position of the shared floating window, to keep a relative position of the switching area relative to the shared floating window unchanged.
- 17 . The method of claim 4 , further comprising: displaying, in the switching area, the application identifiers corresponding to the n foreground applications in a sequential order that the n foreground applications adopt the floating window-dependent display mode.
- 18 . The method of claim 4 , wherein the method further comprises: highlighting, in the switching area, an application identifier corresponding to an application whose application interface is currently displayed in the shared floating window.
- 19 . A terminal, comprising a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is configured to be executed by the processor to: display a first application interface of a first application in a shared floating window, wherein the first application is one of n foreground applications each adopting a floating window-dependent display mode in which mode a respective application adopts a floating window for display and function execution, and n is an integer greater than or equal to 2; the shared floating window is configured to be shared by the n foreground applications in such a manner that each of the n foreground applications displays its respective application interface through the shared floating window and only an application interface of one of the n foreground application is displayed in the shared floating window at a time, and an application whose application interface is displayed in the shared floating window is capable of executing its application functions in the shared floating window; and in response to an application switching operation, switch, in the shared floating window, the first application interface to a second application interface of a second application, wherein the second application is one of the n foreground applications.
- 20 . A non-transitory computer-readable storage medium, wherein the storage medium stores at least one instruction, which when executed by a processor, causes the processor to: display a first application interface of a first application in a shared floating window, wherein the first application is one of n foreground applications each adopting a floating window-dependent display mode in which mode a respective application adopts a floating window for display and function execution, and n is an integer greater than or equal to 2; the shared floating window is configured to be shared by the n foreground applications in such a manner that each of the n foreground applications displays its respective application interface through the shared floating window and only an application interface of one of the n foreground application is displayed in the shared floating window at a time, and an application whose application interface is displayed in the shared floating window is capable of executing its application functions in the shared floating window; and in response to an application switching operation received through a switching area or a floating window menu associated with the shared floating window, switch, in the shared floating window, the first application interface to a second application interface of a second application, wherein the second application is one of the n foreground applications.
Description
CROSS-REFERENCE OF RELATED APPLICATIONS This application is a continuation of International Application No. PCT/CN2022/073473, filed Jan. 24, 2022, which claims priority to Chinese Patent Application No. 202110169218.X, filed Feb. 7, 2021, the entire disclosures of which are incorporated herein by reference. TECHNICAL FIELD The present disclosure relates to the field of human-computer interaction, and in particular to an application switching method, a terminal and a non-transitory storage medium. BACKGROUND With the continuous development of terminal technologies, more and more applications are installed in a terminal. In a process of using the applications, a user often needs to switch between the applications. In order to improve efficiency of switching the applications, more and more terminals support a floating window function. That is, an application interface of an application is displayed in a floating window, so that the user can perform an operation of the application through the floating window. When there is a need to switch back and forth among a plurality of applications for operation, a plurality of floating windows may be initiated to respectively display application interfaces of different applications. SUMMARY Embodiments of the invention provide an application switching method, a terminal and a non-transitory storage medium. And the technical solutions are illustrated as follows. In an aspect, an embodiment of the disclosure provides an application switching method, where the application switching method includes: displaying a first application interface of a first application in a shared floating window, where the first application is one of n foreground applications each adopting a floating window-dependent display mode, and n is an integer greater than or equal to 2;receiving an application switching operation; andin 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, where the second application is one of the n foreground applications. In another aspect, an embodiment of the present disclosure provides a terminal, where the terminal includes a processor and a memory. At least one instruction is stored in the memory, and the at least one instruction is configured to be executed by the processor to: display a first application interface of a first application in a shared floating window, where the first application is one of n foreground applications each adopting a floating window-dependent display mode, and n is an integer greater than or equal to 2; and in response to an application switching operation, switch the first application interface displayed in the shared floating window to a second application interface of a second application, where the second application is one of the n foreground applications. In another aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing at least one instruction. The at least one instruction is configured to be executed by a processor to: display a first application interface of a first application in a shared floating window, where the first application is one of n foreground applications each adopting a floating window-dependent display mode, and n is an integer greater than or equal to 2; and in response to an application switching operation received through a switching area or a floating window menu associated with the shared floating window, switch the first application interface displayed in the shared floating window to a second application interface of a second application, where the second application is one of then foreground applications. Other features and aspects of the disclosed features will become apparent from the following detailed description, taken in conjunction with the accompanying drawings, which illustrate, by way of example, the features in accordance with embodiments of the disclosure. The summary is not intended to limit the scope of any embodiments described herein. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram illustrating an interface when multiple application floating windows are displayed in the related art. FIG. 2 is a schematic diagram illustrating interfaces in a process for switching an application according to an exemplary embodiment of the present disclosure. FIG. 3 is a flowchart of an application switching method according to an exemplary embodiment of the present disclosure. FIG. 4 is a flowchart of an application switching method according to another exemplary embodiment of the present disclosure. FIG. 5 is a schematic diagram illustrating interfaces in a process for adding an application according to an exemplary embodiment of the present disclosure. FIG. 6 is a schematic diagram illustrating interfaces in a process for removing an application according to an exemplary embodiment of the present