[go: up one dir, main page]

CN112214297A - Application switching method and electronic equipment - Google Patents

Application switching method and electronic equipment Download PDF

Info

Publication number
CN112214297A
CN112214297A CN202011057124.5A CN202011057124A CN112214297A CN 112214297 A CN112214297 A CN 112214297A CN 202011057124 A CN202011057124 A CN 202011057124A CN 112214297 A CN112214297 A CN 112214297A
Authority
CN
China
Prior art keywords
application
application program
target
screen
background
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011057124.5A
Other languages
Chinese (zh)
Inventor
秦际航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202011057124.5A priority Critical patent/CN112214297A/en
Publication of CN112214297A publication Critical patent/CN112214297A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an application switching method and device and electronic equipment, and belongs to the technical field of communication. The method comprises the following steps: under the condition that a user is detected to execute target operation on an application interface of a first application program, determining the target application program selected by the target operation from an application program list running in a background, wherein the first application program is an application program running in a foreground of the electronic equipment; switching from the first application to the target application. Therefore, the user can switch from the current application to the target application program selected by the target operation only by executing the target operation on the current application interface, the operation times of the user are reduced, and the switching efficiency is improved.

Description

Application switching method and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an application switching method and electronic equipment.
Background
At present, electronic equipment basically supports application processes to keep running in a background, and a user can switch the background application processes to a foreground at will. In the prior art, when a user operates an electronic device to jump from an application a to an application B and simultaneously open other pages of the application B, if the user needs to return to the application a, the user generally needs to continuously click a return key or execute a return gesture, and the pages are sequentially returned in sequence until the application a is returned; or, the user enters a task management interface by clicking a task key or executing a task gesture, and slides the label to select the previous application.
Therefore, the existing return operation methods have disadvantages, and in the process of switching the application, a user is required to execute multiple operations, so that the switching efficiency is low.
Disclosure of Invention
The embodiment of the application switching method and the electronic device can solve the problems that a user needs to perform multiple operations and the switching efficiency is low in the existing application switching method.
In a first aspect, an embodiment of the present application provides an application switching method, including:
under the condition that a user is detected to execute target operation on an application interface of a first application program, determining the target application program selected by the target operation from an application program list running in a background, wherein the first application program is an application program running in a foreground of the electronic equipment;
switching from the first application to the target application.
In a second aspect, an embodiment of the present application provides an application switching apparatus, including:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a target application program selected by a target operation from an application program list running in a background under the condition that the target operation executed by a user on an application interface of the first application program is detected, and the first application program is an application program running in the foreground of the electronic equipment;
a switching module for switching from the first application to the target application.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, under the condition that a target operation executed by a user on an application interface of a first application program is detected, the target application program selected by the target operation from an application program list running in a background is determined, wherein the first application program is an application program running in a foreground of electronic equipment; switching from the first application to the target application. Therefore, the user can switch from the current application to the target application program selected by the target operation only by executing the target operation on the current application interface, so that the operation times of the user are reduced and the switching efficiency is improved compared with the existing mode.
Drawings
Fig. 1 is a flowchart of an application switching method according to an embodiment of the present application;
FIG. 2a is a schematic diagram illustrating a user performing a target operation on a current application interface according to an embodiment of the present application;
FIG. 2b is a schematic interface diagram of application switching provided in the embodiment of the present application;
FIG. 2c is a schematic diagram of an interface for displaying an application icon running in the background in the target area according to an embodiment of the present application;
FIG. 2d is a second schematic diagram of an interface for displaying a background running application icon in a target area according to the embodiment of the present application;
FIG. 3a is a schematic diagram of another embodiment of the present application, illustrating a user performing a target operation on a current application interface;
FIG. 3b is a second schematic interface diagram of application switching according to the embodiment of the present application;
fig. 3c is a third schematic interface diagram for displaying a background running application icon in a target area according to the embodiment of the present application;
FIG. 3d is a fourth schematic diagram of an interface for displaying a background running application icon in a target area according to an embodiment of the present application;
FIG. 4 is a diagram illustrating a list of applications running in the background according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an application switching apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The application switching method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart of an application switching method according to an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step 101, under the condition that it is detected that a user executes a target operation on an application interface of a first application program, determining the target application program selected by the target operation from an application program list running in a background, wherein the first application program is an application program running in a foreground of the electronic device.
The application interface of the first application program may be an application interface of an application program currently running on the electronic device, that is, the first application program may be an application program running in a foreground on the electronic device, the target operation may be a preset operation for determining the application program to be switched and triggering application switching, and may be a one-time continuous touch operation, that is, a user only needs to perform one operation to determine the target application program to be switched and trigger the electronic device to switch from the current application program to the target application program. For example, the target operation may be an operation of sliding from a certain position to another position on the screen of the electronic device on the current application interface, and the operation may default that one application or a subsequent application on the application list running in the background is the target application to be switched, or the operation may first trigger application icon display of the application in the application list running in the background, so that the user may continue to slide and select the application icon of the application desired to be switched.
It should be noted that, in order to avoid the target operation from colliding with the existing touch operation (e.g., an operation of sliding upward from the bottom end of the screen, a pull-down operation of sliding downward from the top end of the screen, etc.), the target operation may be an operation of sliding from a specific position of the screen, or a specific gesture operation, etc., such as an operation of sliding obliquely from the lower left corner or the lower right corner of the screen, a gesture operation of drawing a letter "C" on the screen, etc.
The determining of the target application selected by the target operation from the application list running in the background may be based on a specific type of the target operation, and determine the corresponding target application, for example, if the target operation is an operation that triggers default switching to a previous application or a next application in the application list running in the background, it may be determined that the previous application or the next application in the application list running in the background is the target application to be switched; and if the target operation is an operation of triggering and displaying application icons of the application programs in the application program list running in the background and selecting the application icons from the application icons, determining that the application program corresponding to the selected target application icon is the target application program to be switched. The application program list running in the background can include application programs running in the background of the electronic device, and the application programs in the application program list running in the background can be sorted in a certain mode, such as sorted according to the time of first starting or sorted according to the time of last operation.
In the embodiment of the application, under the condition that the electronic device runs a certain application, if a user desires to switch to another application program, a target operation can be directly executed on a current application interface, so that the target application program desired to be switched is selected through the target operation, and the electronic device is triggered to be switched to the target application program.
Optionally, the target operation is an operation of sliding from a first position to a second position of a screen of the electronic device; the list of applications running in the background further comprises the first application;
the determining of the target application selected by the target operation from the application list running in the background comprises:
under the condition that the first position is a first area position of the screen, determining an application program which is adjacent to the first application program in a background running application program list and is sequenced before the first application program as a target application program; or
If the first position is a second area position of the screen, determining an application program which is adjacent to the first application program and is sequenced after the first application program in the application program list running in the background as a target application program;
the first area position and the second area position are two preset positions on the screen.
In one embodiment, the target operation may be an operation of sliding from a first position to a second position of a screen of the electronic device, where the first position may be a specific area position on the screen, such as any one of four corners of the screen, and for a single-hand operation of a user, the first position may be a lower left corner position or a lower right corner position of the screen; the second position may be a position on the screen that is located diagonally to the first position. For example, the first position is a lower left corner of the screen, and the second position is a right-oblique corner of the first position, or the first position is a lower right corner of the screen, and the second position is a left-oblique corner of the first position, so that the target operation may be an operation of sliding from the lower left corner of the screen to the oblique right direction by 45 degrees as shown in fig. 2a, or may be an operation of sliding from the lower right corner of the screen to the oblique left direction by 45 degrees as shown in fig. 3 a.
In this embodiment, in order to facilitate a user to quickly select different applications for switching, it may be further determined that the different applications are target applications to be switched according to a difference of the first positions, and specifically, when the first position is a first area position of the screen, one application adjacent to a current application and ranked before the current application in the application list running in the background is determined as the target application, and when the first position is a second area position of the screen, one application adjacent to the current application and ranked after the current application in the application list running in the background is determined as the target application.
The first area position and the second area position may be two preset positions on the screen, for example, the first area position is a lower left corner position of the screen, the second area position is a lower right corner position of the screen, or the first area position is a lower right corner position of the screen, the second area position is a lower left corner position of the screen, or the first area position and the second area position are respectively a middle left and right side position on the screen, and so on; the application program list running in the background is used for storing the application programs running in the background, and in the embodiment of the application, the application program list running in the background is applicable to a scenario in which at least two application programs running in the background exist, and the application programs in the application program list running in the background may be arranged in sequence according to respective first starting time or operation time, for example, when a user starts an application program a, an application program B and an application program C in sequence, the three application programs are sequenced in the application program list running in the background as shown in fig. 4.
In this way, if it is detected that the user slides from the first area position to the second position of the screen of the electronic device on the current application interface, as shown in fig. 2B, the application interface of the application B that is previous to the current application C in the list of applications running in the background may be switched to, and if it is detected that the user slides from the second area position to the second position of the screen of the electronic device on the current application interface, as shown in fig. 3B, the application interface of the application D that is next to the current application C in the list of applications running in the background may be switched to. The user can select to execute the operation of sliding from the first area position to the second position of the screen or execute the operation of sliding from the second area position to the second position of the screen according to the switching requirement, and through the implementation mode, the application program which is adjacent to the current application in the application program list running in the background can be quickly switched to.
Optionally, the target operation includes an operation of sliding from a first position to a second position of a screen of the electronic device;
the determining of the target application selected by the target operation from the application list running in the background comprises:
under the condition that the user stays at the second position for a preset time length, displaying application icons of the application programs in the application program list running in the background on a target area associated with the second position on the screen, wherein the application icons are displayed at the second position;
determining an application program corresponding to the application icon displayed at the second position as a target application program under the condition that the second position is detected as a sliding end point of the target operation; or
And under the condition that the user is detected to continuously slide from the second position to the position of the target application icon, determining the application program corresponding to the target application icon as the target application program, wherein the target application icon is an icon except the application icon displayed at the second position in the application icons displayed in the target area.
In another embodiment, the target operation may include an operation of sliding from the first position to the second position of the screen of the electronic device, that is, the target operation may include other operations besides the operation of sliding from the first position to the second position of the screen of the electronic device, and the operation of sliding from the first position to the second position of the screen of the electronic device may be a part of the target operation, such as the first half operation.
In this embodiment, if it is detected that the user stays at the second position for a preset time period when performing an operation of sliding from the first position to the second position of the screen of the electronic device, that is, a long press operation is performed at the second position, displaying the application icons of the applications in the application list running in the background on a target area associated with the second position on the screen may be triggered, so that the user may select the application icon of the application that is desired to be switched from the target area, where the target area may be an area around the second position on the screen. In order to reduce user operations, the application icon of one application program in the application program list running in the background can be displayed at the second position, that is, the position pressed by the hand of the user, so that if the application program corresponding to the application icon at the second position is the application program which the user desires to switch, the user does not need to perform sliding selection operation.
Therefore, if it is detected that the second position is the sliding end point of the target operation, that is, after the application icons of the application programs in the application program list running in the background are displayed, the user does not slide to the positions of other application icons but stays at the second position, or the user slides to other positions but finally slides back and stays at the second position, the application icon displayed at the second position is in a selected state, and the application program corresponding to the application icon can be determined to be the target application program, and after the finger of the user leaves, the target operation of the user can be responded, and the target application program is switched to.
And if it is detected that the user continues to slide from the second position to the position of the target application icon, that is, the user continues to slide in the target area after displaying the application icons of the application programs in the application program list running in the background, and finally stays at the application icon of the application program desired to be switched, the target application icon is in a selected state, and the application program corresponding to the target application icon can be determined to be the target application program, and after the user leaves the finger, the user can respond to the target operation of the user and switch to the target application program, and certainly, the target application icon is an icon of the application icons displayed in the target area except the application icon displayed at the second position.
Therefore, a user can trigger the application icons of the application programs in the application program list running in the background to be displayed near the second position by executing the operation of sliding from the first position to the second position of the screen of the electronic equipment and staying at the second position for a preset time length, and can continue to select the application icon of the application program expected to be switched from the application program list through sliding so as to trigger the switching to the corresponding application program.
Optionally, the target area is a circumferential area on the screen, where the first position is used as a center of a circle, and a distance from the first position to the second position is a radius.
In this embodiment, the first position on the screen may be used as a center of a circle, a distance between the first position and the second position is a semi-meridian circle, and a circumferential area where the circle is located is the target area, so that the application icons of the at least two applications in the application list running in the background are displayed in the target area, the application icons of the at least two applications in the application list running in the background may be displayed in the target area in a circumferential manner, and the application icons may be sequentially displayed clockwise according to the arrangement sequence of the at least two applications.
For example, as shown in fig. 2c, the first position is a lower left corner of the screen, the second position is a right oblique side of the first position, a semicircle is drawn with the lower left corner of the screen as a center of circle and a distance from the lower left corner of the screen to the second position being a half longitude, application icons of at least two applications in the application list running in the background are clockwise laid out on the semicircle in a circumferential direction, and an application icon is displayed at the second position.
Therefore, the application icons of at least two application programs in the application program list running in the background are displayed on the circumference of the target area, so that the human-computer interaction interface is more novel and interesting, and the user experience can be further improved.
Optionally, the list of applications running in the background further includes the first application;
under the condition that the first position is a first area position of the screen, the application icons displayed at the second position are application icons of application programs which are adjacent to the first application program in the application program list running in the background and are sequenced before the first application program; or
If the first position is a second area position of the screen, the application icons displayed at the second position are the application icons of the applications which are adjacent to the first application and are sequenced after the first application in the application list running in the background;
the first area position and the second area position are two preset positions on the screen.
In this embodiment, in order to reduce user operations or enable a user to quickly select an application icon of a target application, in consideration that the user usually switches between application programs that have been recently operated when switching applications, application icons of application programs adjacent to the current application in the list of application programs running in the background may be displayed at the second location.
Specifically, based on the difference of the initial sliding positions in the user target operation, the application icon of the previous or next application adjacent to the current application in the list of the applications running in the background may be displayed, that is, in the case that the first position is a first region position of the screen, the application icon displayed at the second position is the application icon of the previous application in the list of the applications running in the background, and in the case that the first position is a second region position of the screen, the application icon displayed at the second position is the application icon of the next application in the list of the applications running in the background, wherein the first region position or the second region position may be two positions opposite to the bottom of the screen, so as to facilitate the single-handed operation of the user, the first area position may be a lower left corner position of the screen or a lower right corner position of the screen, and the second area position may be another corner position of the screen opposite to the first area position, that is, the first area position is a lower left corner position of the screen, and the second area position is a lower right corner position of the screen, or the first area position is a lower right corner position of the screen, and the second area position is a lower left corner position of the screen.
For example, as shown in fig. 2C, when the first position is the lower left corner of the screen, the application icon displayed at the second position is an application icon of an application B that is one application B before the current application C in the application list running in the background, so that the application B can be defaulted as the currently selected target application; as shown in fig. 3C, when the first position is the lower right corner of the screen, the application icon displayed at the second position is an application icon of an application program D subsequent to the current application program C in the application program list running in the background, so that the application program D can be defaulted as the currently selected target application program.
In this way, the user can select to slide from the first area position to the second position of the screen to select the previous application program of the current application in the application program list running in the background by default or slide from the second area position to the second position of the screen to select the next application program of the current application in the application program list running in the background by default according to different application programs needing to be switched. When a user desires to switch to an application in the list of applications running in the background, which is adjacent to the current application, a fast switch can be achieved by this embodiment.
Optionally, the list of applications running in the background further includes the first application;
under the condition that the first position is a first area position of the screen and the application programs which are sequenced before the first application program are not included in the application program list running in the background, the application icon displayed at the second position is the application icon of the first application program; or
When the first position is a second area position of the screen and the application programs sequenced after the first application program are not included in the application program list running in the background, the application icon displayed at the second position is the application icon of the first application program;
the first area position and the second area position are two preset positions on the screen.
In this embodiment, in a case that the first location is a first area location of the screen, the application icon of an application program that is previous to the current application in the application program list running in the background should be displayed at the second location, but if there is no application program that is previous to the current application in the application program list running in the background, the application icon of the current application program may be displayed at the second location; similarly, in the case that the first position is a second area position of the screen, the application icon of the application program subsequent to the current application in the list of the application programs running in the background should be displayed at the second position, but if the application program subsequent to the current application does not exist in the list of the application programs running in the background, the application icon of the current application can be displayed at the second position.
For example, as shown in fig. 2d, when the first position is the lower left corner of the screen, but there are no applications in the list of applications running in the background that are before the current application, the application icon of the current application C may be displayed at the second position; alternatively, as shown in fig. 3d, when the first position is the lower right corner of the screen, but there are no applications behind the current application in the list of applications running in the background, the application icon of the current application C may be displayed at the second position.
Therefore, when the application program before or after the current application program does not exist in the application program list running in the background, the situation that the blank icon is displayed at the second position can be avoided by displaying the application icon of the current application program at the second position, the sliding distance of the user when the user selects the application icon in a sliding mode can be further reduced, and the user can be helped to finish the selection of the application icon quickly.
And 102, switching from the first application program to the target application program.
After the target application program corresponding to the target operation is determined, the currently running first application program can be directly switched to the target application program, specifically, the target application program can be switched to an application interface displayed when the target application program is run last time, for example, when the target application program is run last time, a chat interface is displayed before the target application program is switched to a background, and when the target application program is switched to the background, the target application program can be switched back to the chat interface.
In the application switching method in the embodiment of the application, under the condition that it is detected that a user executes a target operation on an application interface of a first application program, the target application program selected by the target operation from an application program list running in a background is determined, wherein the first application program is an application program running in a foreground of an electronic device; switching from the first application to the target application. Therefore, the user can switch from the current application to the target application program selected by the target operation only by executing the target operation on the current application interface, so that the operation times of the user are reduced and the switching efficiency is improved compared with the existing mode.
The following describes a specific implementation of the embodiment of the present application with reference to fig. 2a to 3 d:
when the electronic device displays the application interface of the application program C, if the user desires to switch to other background application programs, as shown in fig. 2a, the user can slide from the lower left corner of the screen to the oblique right direction by 45 degrees, the electronic device determines whether the user's finger is pressed long at the sliding end after sliding, if not, as shown in fig. 2B, the electronic device can directly switch to the application program B which is the last application program B of the current application program C in the application queue running in the background, and if there is no application program which is arranged before the current application program C in the application queue running in the background, no operation can be performed; if the user's finger has pressed long at the sliding end position, the application icons of the application programs in the application queue running in the background may be displayed in a sector at the sliding end as shown in fig. 2C, and the application icon of the application program B arranged before the current application program C is in a selected state by default, if the application program B is not arranged before the current application program C, the application icon of the current application program C may be selected by default, the user may perform sliding selection in the displayed application icons, that is, slide to the application icon of the application program to be switched, and finally determine the application program to be switched through the final stopping position of the user's finger, and switch the application program to the foreground for running.
Of course, as shown in fig. 3a, when the electronic device displays the application interface of the application program C, the user slides from the lower right corner of the screen to the 45 ° direction to the right oblique direction by using a finger, the electronic device determines whether the user's finger is pressed long at the sliding end after sliding, if not, the electronic device may directly switch to the application program D that is next to the current application program C in the application queue running in the background as shown in fig. 3b, and if there is no application that is listed behind the current application program C in the application queue running in the background, no operation may be performed; if the user's finger has pressed long at the sliding end position, the application icons of the application programs in the application queue running in the background may be displayed in a sector at the sliding end as shown in fig. 3C, and the application icon of the application program D arranged behind the current application program C is in a selected state by default, if there is no application program arranged before the current application program C, the application icon of the current application program C may be selected by default, the user may perform sliding selection in the displayed application icons, that is, slide to the application icon of the application program to be switched, and finally determine the application program to be switched through the final stopping position of the user's finger, and switch the application program to the foreground for running.
It should be noted that, in the application switching method provided in the embodiment of the present application, the execution main body may be an application switching device, or a control module in the application switching device for executing the application switching method. In the embodiment of the present application, an application switching apparatus is taken as an example to execute an application switching method, and the application switching apparatus provided in the embodiment of the present application is described.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an application switching apparatus according to an embodiment of the present application, and as shown in fig. 5, an application switching apparatus 500 includes:
a determining module 501, configured to determine, when it is detected that a user performs a target operation on an application interface of a first application, a target application selected by the target operation from an application list running in a background, where the first application is an application running in a foreground of an electronic device;
a switching module 502, configured to switch from the first application to the target application.
Optionally, the target operation is an operation of sliding from a first position to a second position of a screen of the electronic device; the list of applications running in the background further comprises the first application;
the determining module 501 includes:
a first determining unit, configured to determine, as a target application, an application that is adjacent to the first application and is ordered before the first application in a list of applications running in a background if the first position is a first region position of the screen; or
A second determining unit, configured to determine, as a target application, an application that is adjacent to the first application and is ordered after the first application in the application list running in the background if the first position is a second area position of the screen;
the first area position and the second area position are two preset positions on the screen.
Optionally, the target operation includes an operation of sliding from a first position to a second position of a screen of the electronic device;
the determining module 501 includes:
the display unit is used for displaying application icons of at least two application programs in the application program list running in the background on a target area associated with the second position on the screen under the condition that the user stays at the second position for a preset time length, wherein the application icons are displayed at the second position;
a third determining unit, configured to determine, when it is detected that the second position is a sliding end point of the target operation, an application program corresponding to an application icon displayed at the second position as a target application program; or
And a fourth determining unit, configured to determine, when it is detected that the user continues to slide from the second position to a position where a target application icon is located, an application program corresponding to the target application icon as a target application program, where the target application icon is an icon, except for the application icon displayed at the second position, in the application icons displayed in the target area.
Optionally, the list of applications running in the background further includes the first application;
under the condition that the first position is a first area position of the screen, the application icons displayed at the second position are application icons of application programs which are adjacent to the first application program in the application program list running in the background and are sequenced before the first application program; or
If the first position is a second area position of the screen, the application icons displayed at the second position are the application icons of the applications which are adjacent to the first application and are sequenced after the first application in the application list running in the background;
the first area position and the second area position are two preset positions on the screen.
Optionally, the list of applications running in the background further includes the first application;
under the condition that the first position is a first area position of the screen and the application programs which are sequenced before the first application program are not included in the application program list running in the background, the application icon displayed at the second position is the application icon of the first application program; or
When the first position is a second area position of the screen and the application programs sequenced after the first application program are not included in the application program list running in the background, the application icon displayed at the second position is the application icon of the first application program;
the first area position and the second area position are two preset positions on the screen.
Optionally, the target area is a circumferential area on the screen, where the first position is used as a center of a circle, and a distance from the first position to the second position is a radius.
The application switching device in the embodiment of the application determines a target application selected by a target operation from an application list running in a background under the condition that the target operation is detected to be executed by a user on an application interface of the first application, wherein the application list running in the background comprises at least two applications running in the background of an electronic device, and the first application is an application running in a foreground of the electronic device; switching from the first application to the target application. Therefore, the user can switch from the current application to the target application program selected by the target operation only by executing the target operation on the current application interface, so that the operation times of the user are reduced and the switching efficiency is improved compared with the existing mode.
The application switching device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The application switching device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The application switching device provided in the embodiment of the present application can implement each process in the method embodiments of fig. 1 to fig. 4, and is not described here again to avoid repetition.
Optionally, an electronic device is further provided in this embodiment of the present application, and includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction is executed by the processor to implement each process of the foregoing embodiment of the application switching method, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and the like.
Those skilled in the art will appreciate that the electronic device 600 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 610 is configured to determine, when it is detected that a target operation is executed by a user on an application interface of a first application program, the target application program selected by the target operation from an application program list running in a background, where the first application program is an application program running in a foreground of an electronic device;
switching from the first application to the target application.
Optionally, the target operation is an operation of sliding from a first position to a second position of a screen of the electronic device; the list of applications running in the background further comprises the first application;
the processor 610 is further configured to determine, as a target application, an application that is adjacent to the first application and is ordered before the first application in a list of applications running in the background if the first position is a first region position of the screen; or
If the first position is a second area position of the screen, determining an application program which is adjacent to the first application program and is sequenced after the first application program in the application program list running in the background as a target application program;
the first area position and the second area position are two preset positions on the screen.
Optionally, the target operation includes an operation of sliding from a first position to a second position of a screen of the electronic device;
the processor 610 is further configured to display application icons of at least two applications in the application list running in the background on a target area associated with the second location on the screen in a case that it is detected that the user stays at the second location for a preset time period, where the second location displays application icons;
determining an application program corresponding to the application icon displayed at the second position as a target application program under the condition that the second position is detected as a sliding end point of the target operation; or
And under the condition that the user is detected to continuously slide from the second position to the position of the target application icon, determining the application program corresponding to the target application icon as the target application program, wherein the target application icon is an icon except the application icon displayed at the second position in the application icons displayed in the target area.
Optionally, the list of applications running in the background further includes the first application;
under the condition that the first position is a first area position of the screen, the application icons displayed at the second position are application icons of application programs which are adjacent to the first application program in the application program list running in the background and are sequenced before the first application program; or
If the first position is a second area position of the screen, the application icons displayed at the second position are the application icons of the applications which are adjacent to the first application and are sequenced after the first application in the application list running in the background;
the first area position and the second area position are two preset positions on the screen.
Optionally, the list of applications running in the background further includes the first application;
under the condition that the first position is a first area position of the screen and the application programs which are sequenced before the first application program are not included in the application program list running in the background, the application icon displayed at the second position is the application icon of the first application program; or
When the first position is a second area position of the screen and the application programs sequenced after the first application program are not included in the application program list running in the background, the application icon displayed at the second position is the application icon of the first application program;
the first area position and the second area position are two preset positions on the screen.
Optionally, the target area is a circumferential area on the screen, where the first position is used as a center of a circle, and a distance from the first position to the second position is a radius.
It is to be understood that, in the embodiment of the present application, the input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics Processing Unit 6041 processes image data of a still picture or a video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes a touch panel 6071 and other input devices 6072. A touch panel 6071, also referred to as a touch screen. The touch panel 6071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 609 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 610 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The electronic device in the embodiment of the application determines a target application program selected by a target operation from an application program list running in a background under the condition that the target operation executed by a user on an application interface of the first application program is detected, wherein the first application program is an application program running in a foreground of the electronic device; switching from the first application to the target application. Therefore, the user can switch from the current application to the target application program selected by the target operation only by executing the target operation on the current application interface, so that the operation times of the user are reduced and the switching efficiency is improved compared with the existing mode.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing application switching method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing application switching method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. An application switching method, comprising:
under the condition that a user is detected to execute target operation on an application interface of a first application program, determining the target application program selected by the target operation from an application program list running in a background, wherein the first application program is an application program running in a foreground of the electronic equipment;
switching from the first application to the target application.
2. The method according to claim 1, wherein the target operation is an operation of sliding from a first position to a second position of a screen of the electronic device; the list of applications running in the background further comprises the first application;
the determining of the target application selected by the target operation from the application list running in the background comprises:
if the first position is a first area position of the screen, determining an application program which is adjacent to the first application program in the application program list running in the background and is sequenced before the first application program as a target application program; or
If the first position is a second area position of the screen, determining an application program which is adjacent to the first application program and is sequenced after the first application program in the application program list running in the background as a target application program;
the first area position and the second area position are two preset positions on the screen.
3. The method according to claim 1, wherein the target operation includes an operation of sliding from a first position to a second position of a screen of an electronic device;
the determining of the target application selected by the target operation from the application list running in the background comprises:
under the condition that the user stays at the second position for a preset time length, displaying application icons of the application programs in the application program list running in the background on a target area associated with the second position on the screen, wherein the application icons are displayed at the second position;
determining an application program corresponding to the application icon displayed at the second position as a target application program under the condition that the second position is detected as a sliding end point of the target operation; or
And under the condition that the user is detected to continuously slide from the second position to the position of the target application icon, determining the application program corresponding to the target application icon as the target application program, wherein the target application icon is an icon except the application icon displayed at the second position in the application icons displayed in the target area.
4. The method of claim 3, wherein the list of applications running in the background further comprises the first application;
under the condition that the first position is a first area position of the screen, the application icons displayed at the second position are application icons of application programs which are adjacent to the first application program in the application program list running in the background and are sequenced before the first application program; or
If the first position is a second area position of the screen, the application icons displayed at the second position are the application icons of the applications which are adjacent to the first application and are sequenced after the first application in the application list running in the background;
the first area position and the second area position are two preset positions on the screen.
5. The method of claim 3, wherein the list of applications running in the background further comprises the first application;
under the condition that the first position is a first area position of the screen and the application programs which are sequenced before the first application program are not included in the application program list running in the background, the application icon displayed at the second position is the application icon of the first application program; or
When the first position is a second area position of the screen and the application programs sequenced after the first application program are not included in the application program list running in the background, the application icon displayed at the second position is the application icon of the first application program;
the first area position and the second area position are two preset positions on the screen.
6. An application switching apparatus, comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a target application program selected by a target operation from an application program list running in a background under the condition that the target operation executed by a user on an application interface of the first application program is detected, and the first application program is an application program running in the foreground of the electronic equipment;
a switching module for switching from the first application to the target application.
7. The application switching apparatus according to claim 6, wherein the target operation is an operation of sliding from a first position to a second position of a screen of the electronic device; the list of applications running in the background further comprises the first application;
the determining module includes:
a first determining unit, configured to determine, as a target application, an application that is adjacent to the first application and is ordered before the first application in the application list running in the background, if the first position is a first area position of the screen; or
A second determining unit, configured to determine, as a target application, an application that is adjacent to the first application and is ordered after the first application in the application list running in the background if the first position is a second area position of the screen;
the first area position and the second area position are two preset positions on the screen.
8. The application switching apparatus according to claim 6, wherein the target operation includes an operation of sliding from a first position to a second position of a screen of the electronic device;
the determining module includes:
the display unit is used for displaying application icons of the applications in the application list running in the background on a target area associated with the second position on the screen under the condition that the user stays at the second position for a preset time length, wherein the second position displays the application icons;
a third determining unit, configured to determine, when it is detected that the second position is a sliding end point of the target operation, an application program corresponding to an application icon displayed at the second position as a target application program; or
And a fourth determining unit, configured to determine, when it is detected that the user continues to slide from the second position to a position where a target application icon is located, an application program corresponding to the target application icon as a target application program, where the target application icon is an icon, except for the application icon displayed at the second position, in the application icons displayed in the target area.
9. The application switching apparatus according to claim 8, wherein the list of applications running in the background further comprises the first application;
under the condition that the first position is a first area position of the screen, the application icons displayed at the second position are application icons of application programs which are adjacent to the first application program in the application program list running in the background and are sequenced before the first application program; or
If the first position is a second area position of the screen, the application icons displayed at the second position are the application icons of the applications which are adjacent to the first application and are sequenced after the first application in the application list running in the background;
the first area position and the second area position are two preset positions on the screen.
10. The application switching apparatus according to claim 8, wherein the list of applications running in the background further comprises the first application;
under the condition that the first position is a first area position of the screen and the application programs which are sequenced before the first application program are not included in the application program list running in the background, the application icon displayed at the second position is the application icon of the first application program; or
Under the condition that the first position is a second area position of the screen and the application programs sequenced after the first application program are not included in the application program list running in the background, the application icon displayed at the second position is the application icon of the first application program;
the first area position and the second area position are two preset positions on the screen.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the application switching method as claimed in any one of claims 1 to 5.
12. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the application switching method according to any one of claims 1-5.
CN202011057124.5A 2020-09-30 2020-09-30 Application switching method and electronic equipment Pending CN112214297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011057124.5A CN112214297A (en) 2020-09-30 2020-09-30 Application switching method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011057124.5A CN112214297A (en) 2020-09-30 2020-09-30 Application switching method and electronic equipment

Publications (1)

Publication Number Publication Date
CN112214297A true CN112214297A (en) 2021-01-12

Family

ID=74052396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011057124.5A Pending CN112214297A (en) 2020-09-30 2020-09-30 Application switching method and electronic equipment

Country Status (1)

Country Link
CN (1) CN112214297A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114911394A (en) * 2022-05-26 2022-08-16 青岛海信移动通信技术股份有限公司 Terminal device and one-hand operation method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170160881A1 (en) * 2014-06-09 2017-06-08 Sony Corporation Information processing device, information processing method, and program
CN107045420A (en) * 2017-04-27 2017-08-15 努比亚技术有限公司 Switching method and mobile terminal, the storage medium of application program
CN108600521A (en) * 2018-03-30 2018-09-28 联想(北京)有限公司 A kind of information processing method, device and electronic equipment
CN108874288A (en) * 2018-06-05 2018-11-23 Oppo广东移动通信有限公司 Application program switching method, device, terminal and storage medium
CN110602321A (en) * 2019-09-11 2019-12-20 腾讯科技(深圳)有限公司 Application program switching method and device, electronic device and storage medium
CN111475066A (en) * 2020-03-26 2020-07-31 维沃移动通信有限公司 Background switching method of application program and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170160881A1 (en) * 2014-06-09 2017-06-08 Sony Corporation Information processing device, information processing method, and program
CN107045420A (en) * 2017-04-27 2017-08-15 努比亚技术有限公司 Switching method and mobile terminal, the storage medium of application program
CN108600521A (en) * 2018-03-30 2018-09-28 联想(北京)有限公司 A kind of information processing method, device and electronic equipment
CN108874288A (en) * 2018-06-05 2018-11-23 Oppo广东移动通信有限公司 Application program switching method, device, terminal and storage medium
CN110602321A (en) * 2019-09-11 2019-12-20 腾讯科技(深圳)有限公司 Application program switching method and device, electronic device and storage medium
CN111475066A (en) * 2020-03-26 2020-07-31 维沃移动通信有限公司 Background switching method of application program and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114911394A (en) * 2022-05-26 2022-08-16 青岛海信移动通信技术股份有限公司 Terminal device and one-hand operation method
CN114911394B (en) * 2022-05-26 2024-06-07 青岛海信移动通信技术有限公司 Terminal equipment and one-hand operation method

Similar Documents

Publication Publication Date Title
CN112148181B (en) Menu display method and device, electronic equipment and storage medium
CN113253883A (en) Application interface display method and device and electronic equipment
CN112083854A (en) Application program running method and device
CN113268182B (en) Application icon management method and electronic device
CN112188001B (en) Shortcut setting method, shortcut setting device, electronic equipment and readable storage medium
CN112433693B (en) Split screen display method and device and electronic equipment
CN113885981A (en) Desktop editing method and device and electronic equipment
CN112783408A (en) Gesture navigation method and device of electronic equipment, equipment and readable storage medium
CN114090110B (en) Application program starting method and device and electronic equipment
CN113407075B (en) Icon sorting method and device and electronic equipment
CN111831177B (en) Application icon display method and device and electronic equipment
CN114327726A (en) Display control method, display control device, electronic equipment and storage medium
CN112399010B (en) Page display method and device and electronic equipment
CN113485625A (en) Electronic equipment response method and device and electronic equipment
CN112764862A (en) Application program control method and device and electronic equipment
CN112099693A (en) Task display method and device and electronic equipment
CN111638828A (en) Interface display method and device
CN112214297A (en) Application switching method and electronic equipment
CN112230817B (en) Link page display method and device and electronic equipment
CN111796736B (en) Application sharing method and device and electronic equipment
CN113885748A (en) Object switching method and device, electronic equipment and readable storage medium
CN114116087A (en) Interface operation method, device, electronic device and medium between dual systems
CN113515216A (en) Application program switching method and device and electronic equipment
CN112764622A (en) Icon moving method and device and electronic equipment
CN111752428A (en) Icon arrangement method and device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination