CN113515216A - Application program switching method and device and electronic equipment - Google Patents

Application program switching method and device and electronic equipment Download PDF

Info

Publication number
CN113515216A
CN113515216A CN202110343067.5A CN202110343067A CN113515216A CN 113515216 A CN113515216 A CN 113515216A CN 202110343067 A CN202110343067 A CN 202110343067A CN 113515216 A CN113515216 A CN 113515216A
Authority
CN
China
Prior art keywords
input
application
interface
application program
receiving
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
CN202110343067.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 Co Ltd
Original Assignee
Vivo Mobile Communication 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 Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110343067.5A priority Critical patent/CN113515216A/en
Publication of CN113515216A publication Critical patent/CN113515216A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • 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

Landscapes

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

Abstract

The application discloses an application program switching method and device and electronic equipment, and belongs to the technical field of communication. The problem that the operation of switching the currently running application program to another background running application program by the electronic equipment is complicated can be solved. The method comprises the following steps: receiving a first input in a case where a first interface of a first application program is displayed; in response to the first input, canceling to display the first interface and displaying a second interface, wherein the second interface is an interface of a second application program, and the second application program is an application program running in a background of the electronic equipment; receiving a second input; in the case that the second input matches the first input, the first interface is displayed in response to the second input, and the second interface is canceled from being displayed.

Description

Application program switching method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an application program switching method and device and electronic equipment.
Background
At present, under the condition that a plurality of application programs are run in a background of an electronic device, if an interface of one application program currently displayed on a screen of the electronic device does not meet an operation requirement of a user, the user can click a function control, so that the electronic device is triggered to display an identifier list of the plurality of application programs running in the background, and then the user can select one identifier from the identifier list, so that the electronic device is triggered to switch another application program indicated by the one identifier to a foreground for running.
However, through the above operation process, when the number of identifiers used for indicating the application program in the identifier list is large, the user needs to perform multiple operations on the interface of the identifier list to view each identifier in the identifier list one by one, and then the user selects a certain identifier needed from the identifier list, so as to trigger the electronic device to display the interface of the application program indicated by the identifier. Therefore, the operation process of switching the electronic device from one application program to other application programs running in the background is complicated.
Disclosure of Invention
The embodiment of the application switching method and device and the electronic device can solve the problem that the operation process of switching the electronic device from one application to other applications running in a background is complex.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an application switching method, where the method includes: receiving a first input in a case where a first interface of a first application program is displayed; in response to the first input, canceling to display the first interface and displaying a second interface, wherein the second interface is an interface of a second application program, and the second application program is an application program which runs in a background of the electronic equipment before the first input is received; receiving a second input; and in the case that the second input is matched with the first input, canceling the display of the second interface and displaying the first interface in response to the second input.
In a second aspect, an embodiment of the present application provides an application switching apparatus, where the application switching apparatus includes a receiving module and a display module; the receiving module is used for receiving first input under the condition that a first interface of a first application program is displayed; the display module is used for responding to the first input received by the receiving module, canceling the display of the first interface and displaying a second interface, wherein the second interface is an interface of a second application program, and the second application program is an application program which runs in a background of the electronic equipment before the first input is received; the receiving module is also used for receiving a second input; and the display module is also used for responding to the second input and canceling the display of the second interface and displaying the first interface under the condition that the second input received by the receiving module is matched with the first input.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method as in 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 as in the first aspect described above.
In a fifth aspect, embodiments of the present application provide 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 as in the first aspect.
In the embodiment of the application, a first input can be received under the condition that a first interface of a first application program is displayed; in response to the first input, canceling to display the first interface and displaying a second interface, wherein the second interface is an interface of a second application program, and the second application program is an application program which runs in a background of the electronic equipment before the first input is received; receiving a second input; and in the case that the second input is matched with the first input, canceling the display of the second interface and displaying the first interface in response to the second input. According to the scheme, when the interface of one application program is displayed, a user can quickly trigger and display the interface of the other application program running in the background of the electronic equipment through input, and the user does not need to trigger the electronic equipment for multiple times to select a certain application program to be switched to be run in the foreground in the background window, so that the operation of switching the currently running application program to the other application program running in the background by the electronic equipment is simplified.
Drawings
Fig. 1 is a schematic diagram of an application switching method according to an embodiment of the present application;
fig. 2 is a schematic interface diagram of application switching according to an embodiment of the present disclosure;
fig. 3 is a second schematic interface diagram of application switching according to an embodiment of the present disclosure;
fig. 4 is an interface schematic diagram of a background application window according to an embodiment of the present application;
fig. 5 is a schematic interface diagram for closing background application switching according to an embodiment of the present disclosure;
fig. 6 is a schematic interface diagram of a markup application provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an application switching apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 9 is a hardware schematic 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.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," should not be construed as advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise specified, "a plurality" means two or more, for example, a plurality of applications means two or more applications and the like.
The embodiment of the application program switching method and device and electronic equipment can receive first input under the condition that a first interface of a first application program is displayed; in response to the first input, canceling to display the first interface and displaying a second interface, wherein the second interface is an interface of a second application program, and the second application program is an application program which runs in a background of the electronic equipment before the first input is received; receiving a second input; and in the case that the second input is matched with the first input, canceling the display of the second interface and displaying the first interface in response to the second input. According to the scheme, when the interface of one application program is displayed, a user can quickly trigger and display the interface of the other application program running in the background of the electronic equipment through input, and the user does not need to trigger the electronic equipment for multiple times to select a certain application program to be switched to be run in the foreground in the background window, so that the operation of switching the currently running application program to the other application program running in the background by the electronic equipment is simplified.
The following describes in detail an application switching method, an application switching device, and an electronic device according to embodiments of the present application through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present application provides an application switching method, which includes the following steps 101 to 104.
Step 101, the application switching device receives a first input when displaying a first interface of a first application.
Optionally, the electronic device is installed with a plurality of applications, and the first application is an application of the plurality of applications. Additionally, the first application may be a system application or a third party application. The method is determined according to actual conditions, and the method is not limited in the embodiment of the application.
Further, the first interface may be any interface of the first application. For example, the first interface is a main interface of the first application.
Optionally, the first input may be a touch input, a voice input, a gesture input, or the like. For example, the touch input may be a sliding input of the user on a screen of the electronic device.
Further, in a case where the first input is a touch input, the touch input may be a touch input of a touch object on a screen of the electronic device. The touch control body can be a finger of a user, a touch control pen or other objects with touch control capability. In addition, in the case where the first input is a touch input, the first input may include parameter information such as an input trajectory and an input direction.
And 102, responding to the first input by the application program switching device, canceling the display of the first interface and displaying the second interface.
The second interface is an interface of a second application program, and the second application program is an application program which runs in a background of the electronic device before the first input is received.
Optionally, the second application may be an application running in the background of the electronic device before receiving the first input, and the application associated with the first application; or any application running in the background of the electronic device before the first input is received. The method can be determined according to actual use requirements, and the embodiment of the application is not limited.
It should be noted that, in the embodiment of the present application, under the condition that two application programs are associated, if one application program runs in the foreground of the electronic device and the other application program runs in the background of the electronic device, the application switching device may be triggered to switch the one application program to run in the background of the electronic device through one input, and switch the other application program to run in the foreground of the electronic device; i.e. to trigger a switch from the interface of the one application to the interface of the other application.
Alternatively, the second application may be a system application or a third party application. The method is determined according to actual conditions, and the method is not limited in the embodiment of the application.
Further, the first interface may be any interface of the first application. For example, the first interface is a main interface of the first application.
Optionally, for the second application being an application associated with the first application, the following 3 possible cases are included:
(1) and the user customizes the application program which is set and is associated with the first application program in advance.
(2) The application of the same or similar type as the first application, i.e. the second application, is the application associated with the first application.
(3) The electronic device records historical usage data for switching from a first application to a second application, i.e., the second application is an application associated with the first application.
Step 101 and step 102 are exemplarily described below with reference to specific examples.
For example, the application switching device is taken as a mobile phone. As shown in fig. 2 (a), an interface 01 (i.e., a first interface) of the application a indicated by the "application a" identification is displayed on the screen of the mobile phone. If the user wants to use another application running in the background, the user's finger can slide 180 degrees clockwise on the cell phone's screen as indicated by arrow m. After the cell phone receives the swipe input (i.e., the first input), in response to the swipe input, the cell phone may switch the application B running in the background and associated with the application a to the foreground, i.e., as shown in fig. 2 (B), the cell phone switches the interface 01 to the interface 02 (i.e., the second interface) of the application B indicated by the "application B" identification.
Step 103, the application switching device receives a second input.
Optionally, the second input may be a touch input or a gesture input. For example, in a case where the screen of the electronic device currently displays an interface of a certain application program, the touch input may be a sliding input of the user on the screen. Of course, the second input may also be other possible inputs, which is not limited in this embodiment of the application.
And 104, under the condition that the second input is matched with the first input, responding to the second input by the application program switching device, canceling to display the second interface, and displaying the first interface.
Optionally, the matching of the second input and the first input may specifically be: the input mode of the second input is the same as the input mode of the first input, and the input direction of the second input is opposite to the input direction of the first input.
For example, the application switching device is taken as a mobile phone. Referring to fig. 2, as shown in fig. 3, the mobile phone displays an interface 02 of the application B. If the user wants to use application A, the user's finger can slide 180 degrees on the screen in a counter-clockwise direction indicated by arrow p. After the mobile phone receives the sliding input (i.e., the second input), in response to the sliding input, since the second input is input in the same manner as the first input and the input direction of the second input is opposite to the input direction of the first input, the mobile phone may switch the interface 02 to the interface 01 of the application a as shown in (a) in fig. 2.
The embodiment of the application program switching method provided by the application program can be used for rapidly triggering and displaying the interface of another application program running in the background of the electronic equipment through input by a user when the interface of the application program is displayed, and the user does not need to trigger the electronic equipment for multiple times to select a certain application program to be switched to the foreground to run in the background window, so that the operation of switching the currently running application program to another application program running in the background by the electronic equipment is simplified.
Optionally, before step 101, the application switching method provided in this embodiment of the present application may further include step 105 to step 108.
And 105, under the condition that the interface of the first application program is displayed, the application program switching device receives a third input.
Optionally, the third input may be a touch input, a voice input, a gesture input, or the like. For example, in a case where the screen of the electronic device currently displays an interface of an application a (i.e., a first application), the touch input is a sliding input in an upward direction on the screen by the user using a stylus tail.
And 106, responding to the third input by the application program switching device, and displaying a third interface.
The third interface port comprises an identifier of at least one application program running in the background of the electronic equipment. For example, the third interface may be a background task window in the electronic device.
Step 107, the application switching device receives a fourth input.
The fourth input is input to the identifier of the second application program in the identifiers of the at least one application program.
Optionally, the fourth input may be a touch input, a voice input, a gesture input, or the like. For example, the touch input is a click input by the user on an identification of the second application. Of course, the fourth input may also be a physical key input, or other possible inputs, which is not limited in the embodiment of the present application.
Step 108, the application switching device associates the first application with the second application in response to the fourth input.
The following describes exemplary steps 105 to 108 with reference to specific examples.
For example, the application switching device is taken as a mobile phone. Referring to fig. 2 (a), an interface 01 of an application a indicated by an "application a" identifier is displayed on the screen of the mobile phone, and the user makes a sliding input in an upward direction on the screen. After the mobile phone receives the sliding input (i.e., the third input), in response to the sliding input, as shown in fig. 4, the mobile phone displays a background application window 03, where the background application window 03 includes an identifier "application B" of application B, an identifier "application C" of application C, an identifier "application D" of application D, and an identifier "application E" of application E, which are running in the background of the mobile phone. The user may then click on the identification "application B" of application B in the background application window 03. After the cell phone receives a click input (i.e., the fourth input), the cell phone associates application a with application B in response to the click input.
It should be noted that, the steps 105 to 108 in the above embodiment are described by taking an example of establishing an association relationship between the first application and the second application. Of course, if the user wants to establish the association relationship between any two other application programs, reference may be made to the detailed description of step 105 to step 108 in the foregoing embodiment, which is not described herein again in this embodiment.
According to the application program switching method provided by the embodiment of the application program, under the condition that the interface of the first application program is displayed, a user can firstly trigger a background application window comprising the identification of at least one application program running in the background of the electronic equipment through one input; the user may then trigger the association of the first application with the second application by another input to the identification of the second application from among the identifications of the at least one application. Thus, an embodiment is provided for establishing an association relationship between two application programs.
Optionally, after the step 106, the method for switching the application program provided in the embodiment of the present application may further include the following step 109 and step 110.
Step 109, the application switching device receives a fifth input.
Optionally, the fifth input may be a touch input or a gesture input. For example, the touch input may be a sliding input of the user on a screen of the electronic device. Further, the fifth input may further include input trajectory information.
Further, the fifth input may be an input of a user on a screen of the electronic device when the screen displays an arbitrary interface. For example, the fifth input may be an input on a screen of the electronic device by a user while the screen displays the background application window. The method can be determined according to actual conditions, and is not limited in the embodiment of the application.
And step 110, under the condition that the shape of the input track of the fifth input is matched with the shape of the preset track, closing at least one application program running in the background of the electronic equipment by the application program switching device.
Optionally, the preset track may be set by a user in a self-defined manner, or may be set by the electronic device in a factory. The method can be determined according to actual conditions, and is not limited in the embodiment of the application.
Further, matching the input track of the fifth input with the preset track means: the shape of the input track of the fifth input is the same as or similar to the shape of the preset track, and the information such as the size and the position of the input track of the fifth input is not limited in the embodiment of the present application.
Optionally, after step 110, the method for switching an application program provided in the embodiment of the present application may further include: a desktop of the electronic device is displayed.
For example, the application switching device is a mobile phone, and the preset track is in an "x" shape. Referring to fig. 5 (a), the mobile phone displays a background application window 03 on the screen, where the background application window 03 includes an identifier "application B" of an application B running in the background of the mobile phone, an identifier "application C" of an application C, an identifier "application D" of an application D, and an identifier "application E" of an application E. If the user does not want to use these applications running in the background of the mobile phone, the user's finger can make a sliding input of the "x" shaped trajectory on the screen of the mobile phone (i.e., the fifth input), as shown in fig. 5 (a). Since the input trajectory of the sliding input is matched with the preset trajectory, the mobile phone can close the application B, the application C, the application D, and the application E running in the background, and display the desktop interface 04 shown in fig. 5 (B).
It should be noted that the above embodiment is exemplified by performing step 109 and step 110 after step 106. Of course, step 109 and step 110 may be executed after step 108 is executed. The method can be determined according to actual conditions, and is not limited in the embodiment of the application.
According to the application program switching method provided by the embodiment of the application program, a user can trigger to close at least one application program running in a background of the electronic equipment through the input of the matching of the shape of the input track and the shape of the preset track. Therefore, the application program running in the background of the electronic equipment can be quickly closed, and the running resources of the electronic equipment can be saved.
Optionally, the second application is an application associated with the first application, and before the step 101, the application switching method provided in this embodiment may further include a step 111 and a step 112.
And step 111, under the condition that the interface of the second application program is displayed, the application program switching device receives a sixth input.
Optionally, the sixth input may be a touch input, a gesture input, or the like. For example, in a case where the screen of the electronic device currently displays an interface of a certain application, the touch input may be an input that the user slides from the upper left corner of the screen to the center of the screen.
And step 112, in response to the sixth input, the application switching device cancels the display of the interface of the second application, displays the desktop of the electronic device, and marks the second application.
The marked second application program is associated with any application program which runs in the foreground after the sixth input; that is, after marking the second application, which application is running in the foreground of the electronic device, the second application may be associated with which application. The first input may be used to trigger the application switching device to switch the first interface to an application running in the background of the electronic device and associated with the first application before the first input is received.
For the description of the associated application program, reference may be specifically made to the related description of the associated application program in the foregoing embodiment, and details are not repeated here to avoid repetition.
It should be noted that, the triggering of switching the interface of the second application program to the desktop by the user through the sixth input means: and switching the second application program from the foreground of the electronic equipment to the background running, and marking the second application program. Further, the marked second application program is associated with any application program which runs in the foreground after the sixth input, so that when other programs run in the foreground of the electronic device, the second application program which runs in the background can be triggered to be quickly switched to run in the foreground through input.
For example, the application switching device is taken as a mobile phone. As shown in (a) in fig. 6, in the case where the cell phone displays the interface 02 of the application B, the user's finger slides from the upper left corner of the screen toward the center of the screen in the direction indicated by the arrow n. After the mobile phone receives the sliding input, in response to the sliding input, as shown in (B) in fig. 6, the mobile phone may switch application B from the foreground to the background running, that is, the mobile phone switches interface 02 to desktop interface 04, and marks application B indicated by identifier 05.
According to the application program switching method provided by the embodiment of the application program, under the condition that the interface of the second application program is displayed, a user can trigger the interface of the second application program to be switched into the desktop through one input and mark the second application program, so that an implementation mode is provided for establishing the association relationship of the two application programs. Furthermore, when the electronic device displays the interfaces of other applications, the marked second application is associated with any application running in the foreground, so that the user can quickly trigger the switching of the interface of the other application to the interface of the second application through input.
Optionally, after step 112, the application switching method provided in the embodiment of the present application may further include step 113 and step 114 described below.
Step 113, the application switching device receives a seventh input to the first application.
Optionally, the seventh input may be a touch input, a voice input, a gesture input, or the like. For example, the touch input may be a click input of the first application by the user. Of course, the seventh input may also be a physical key input, or other possible inputs, which is not limited in this embodiment of the application.
Step 114, the application switching device responds to the seventh input, and displays the first interface of the first application.
According to the application program switching method provided by the embodiment of the application program, under the condition that the interface of the second application program is displayed, a user can trigger the interface of the second application program to be switched into the desktop through one input and mark the second application program, so that an implementation mode is provided for establishing the association relationship of the two application programs. Furthermore, when the electronic device displays the interfaces of other applications, the marked second application is associated with any application running in the foreground, so that the user can quickly trigger the switching of the interface of the other application to the interface of the second application through input.
Alternatively, when the association relationship is established by a labeling method, the step 102 may be specifically implemented by the step 102A described below.
And 102A, under the condition that the input of the first input is matched with the sixth input, responding to the first input, canceling to display the first interface, and displaying the second interface.
In an embodiment of the present application, the matching between the input of the first input and the sixth input specifically includes: the input mode of the first input is the same as that of the sixth input, and the input direction of the first input is opposite to that of the sixth input.
Optionally, the first input and the sixth input are a set of inputs. The sixth input is an input for marking the second application program, and the first input is an input for triggering the second application program to be quickly switched to the foreground for operation.
Illustratively, the sixth input is a slide input from the top left corner of the screen to the center of the screen, and the first input is a slide input from the bottom right corner of the screen to the center of the screen; the sixth input is a slide input from the upper right corner of the screen to the center of the screen, and the first input is a slide input from the lower left corner of the screen to the center of the screen.
It is understood that, in the foregoing step 102A, in the case that the first input matches the sixth input, the first input is used to trigger the interface of the application program running in the background and associated with the first application program of the electronic device before the first interface is switched to receive the first input.
It should be noted that, according to the different input directions of the first input and the sixth input, two applications that are quickly switched to the foreground operation in this way may be recorded. It will be appreciated that without marking the application in advance, there is no operation to quickly switch the application to foreground running.
According to the application program switching method provided by the embodiment of the application program, the user can meet the input of the marked application program through the input characteristics, and the first interface of the first application program is triggered to be switched to the second interface of the second application program, namely, the application program which runs in the background after being identified can be quickly switched to the foreground to run.
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 device executing an application switching method is taken as an example, and the application switching device provided in the embodiment of the present application is described.
As shown in fig. 7, an application switching apparatus 200 according to an embodiment of the present disclosure may include a receiving module 201 and a displaying module 202; a receiving module 201, configured to receive a first input when a first interface of a first application is displayed; the display module 202 may be configured to cancel displaying the first interface and display a second interface in response to the first input received by the receiving module 201, where the second interface is an interface of a second application program, and the second application program is an application program running in a background of the electronic device before receiving the first input; the receiving module 201 may be further configured to receive a second input; the display module 202 may be further configured to cancel displaying the second interface and display the first interface in response to the second input if the second input received by the receiving module 201 matches the first input.
Optionally, the second application is an application associated with the first application; the application switching device may further include a processing module; the receiving module 201 may be further configured to receive a third input in a case where the interface of the first application is displayed; a display module 202, configured to display a third interface in response to the third input received by the receiving module 201, where the third interface may include an identifier of at least one application running in the background of the electronic device; the receiving module 201 may be further configured to receive a fourth input, where the fourth input is an input to an identifier of a second application program in the identifiers of the at least one application program; the processing module may be further configured to associate the first application with the second application in response to the fourth input received by the receiving module 201.
Optionally, the apparatus may further comprise a processing module; the receiving module 201 may be further configured to receive a fifth input; the processing module may be further configured to close at least one application running in the background of the electronic device when the shape of the input track of the fifth input received by the receiving module 201 matches the shape of the preset track.
Optionally, the second application is an application associated with the first application; the receiving module 201 may be further configured to receive a sixth input in a case where the display module 202 displays an interface of the second application before receiving the first input; the display module 202 may be further configured to cancel displaying the interface of the second application, display the desktop of the electronic device, and mark the second application in response to the sixth input; wherein the marked second application is associated with any application running in the foreground after the sixth input; the first input may be used to trigger switching the first interface to an interface of an application running in the background of the electronic device and associated with the first application prior to receiving the first input.
Optionally, the display module 202 may be specifically configured to cancel displaying the first interface and display the second interface in response to the first input when the input of the first input is matched with the sixth input.
In the application switching device provided in the embodiment of the application, when the interface of one application is displayed, the user can quickly trigger the electronic device to display the interface of another application running in the background of the electronic device through input, and the user does not need to trigger the electronic device to select a certain application to be switched to the foreground for multiple times in the background window, so that the operation of switching the currently running application to another application running in the background by the electronic device is simplified.
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 implemented by the method embodiments of fig. 1 to fig. 6, and is not described here again to avoid repetition.
Optionally, as shown in fig. 8, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and executable on the processor 301, where the program or the instruction is executed by the processor 301 to implement each process of the embodiment of the application program switching method, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
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. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 400 includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 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. 9 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 not repeated here.
The user input unit 407 may be configured to receive a first input in a case where a first interface of a first application is displayed; the display unit 406 may be configured to cancel displaying the first interface and display a second interface in response to the first input received by the user input unit 407, where the second interface is an interface of a second application program, and the second application program is an application program running in a background of the electronic device before receiving the first input; a user input unit 407, which may also be used to receive a second input; the display unit 406 may be further configured to cancel displaying the second interface and display the first interface in response to the second input in a case where the second input received by the user input unit 407 matches the first input.
Optionally, the second application is an application associated with the first application; the user input unit 407 may be further configured to receive a third input in a case where an interface of the first application is displayed; a display unit 406, which may be configured to display a third interface in response to a third input received by the user input unit 407, where the third interface may include an identifier of at least one application running in the background of the electronic device; the user input unit 407 may be further configured to receive a fourth input, where the fourth input is an input to an identifier of a second application program in the identifiers of the at least one application program; the processor 410 may be further configured to associate the first application with the second application in response to a fourth input received by the user input unit 407.
Optionally, the user input unit 407 may be further configured to receive a fifth input; the processor 410 may be configured to close at least one application running in the background of the electronic device if the shape of the input trajectory of the fifth input received by the user input unit 407 matches the shape of the preset trajectory.
Optionally, the second application is an application associated with the first application; the user input unit 407 may be further configured to receive a sixth input in a case where the display unit 406 displays an interface of the second application before receiving the first input; the display unit 406 may be further configured to cancel displaying the interface of the second application, display the desktop of the electronic device, and mark the second application in response to the sixth input; wherein the marked second application is associated with any application running in the foreground after the sixth input; the first input may be used to trigger switching the first interface to an interface of an application running in the background of the electronic device and associated with the first application prior to receiving the first input.
Optionally, the display unit 406 may be specifically configured to cancel displaying the first interface and display the second interface in response to the first input when the input of the first input matches the sixth input.
The embodiment of the application provides an electronic device, and when an interface of one application is displayed, a user can quickly trigger the electronic device to display an interface of another application running in a background of the electronic device through input, and the user does not need to trigger the electronic device to select a certain application to be switched to a foreground running in a background window for multiple times, so that the operation of switching the currently running application to another application running in the background by the electronic device is simplified.
It should be understood that, in the embodiment of the present application, the input unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the graphics processor 4041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072. A touch panel 4071, also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 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 409 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 410 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 410.
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 program 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 in the above embodiment. Readable storage media, including computer-readable storage media such as a computer-read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and so forth.
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 execute a program or an instruction to implement each process of the embodiment of the application switching method, and the same technical effect can be achieved.
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, an air conditioner, or a network device) to execute the method in 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, the method comprising:
receiving a first input in a case where a first interface of a first application program is displayed;
responding to the first input, canceling to display the first interface, and displaying a second interface, wherein the second interface is an interface of a second application program, and the second application program is an application program which runs in a background of the electronic equipment before receiving the first input;
receiving a second input;
and under the condition that the second input is matched with the first input, responding to the second input, canceling the display of the second interface and displaying the first interface.
2. The method of claim 1, wherein the second application is an application associated with the first application;
before receiving the first input while the first interface of the first application is displayed, the method further includes:
receiving a third input in a case where an interface of the first application program is displayed;
responding to the third input, and displaying a third interface, wherein the third interface comprises an identifier of at least one application program running in the background of the electronic equipment;
receiving a fourth input, the fourth input being an input to an identification of a second application of the identifications of the at least one application;
associating the first application with the second application in response to the fourth input.
3. The method of claim 2, further comprising:
receiving a fifth input;
and closing the at least one application program running in the background of the electronic equipment under the condition that the shape of the input track of the fifth input is matched with the shape of a preset track.
4. The method of claim 1, wherein the second application is an application associated with the first application;
before receiving the first input while the first interface of the first application is displayed, the method further includes:
receiving a sixth input in a case where an interface of the second application program is displayed;
in response to the sixth input, canceling the display of the interface of the second application program, displaying the desktop of the electronic equipment, and marking the second application program;
wherein the marked second application is associated with any application that runs in the foreground after the sixth input; the first input is used for triggering the interface of an application program which runs in a background and is associated with the first application program of the electronic equipment before the first interface is switched to receive the first input.
5. The method of claim 4, wherein said canceling the display of the first interface and displaying a second interface in response to the first input comprises:
and in the case that the input of the first input is matched with the sixth input, canceling the display of the first interface and displaying a second interface in response to the first input.
6. The application switching device is characterized by comprising a receiving module and a display module;
the receiving module is used for receiving a first input under the condition that a first interface of a first application program is displayed;
the display module is configured to cancel displaying the first interface and display a second interface in response to the first input received by the receiving module, where the second interface is an interface of a second application program, and the second application program is an application program running in a background of the electronic device before receiving the first input;
the receiving module is further used for receiving a second input;
the display module is further configured to cancel displaying the second interface and display the first interface in response to the second input when the second input received by the receiving module is matched with the first input.
7. The apparatus of claim 6, wherein the second application is an application associated with the first application; the device further comprises a processing module;
the receiving module is further used for receiving a third input under the condition that the interface of the first application program is displayed;
the display module is further configured to display a third interface in response to the third input received by the receiving module, where the third interface includes an identifier of at least one application program running in the background of the electronic device;
the receiving module is further configured to receive a fourth input, where the fourth input is an input to an identifier of a second application program in the identifiers of the at least one application program;
the processing module is configured to associate the first application with the second application in response to the fourth input received by the receiving module.
8. The apparatus of claim 7, wherein the receiving module is further configured to receive a fifth input;
the processing module is further configured to close at least one application program running in the background of the electronic device when the shape of the input track of the fifth input received by the receiving module is matched with the shape of a preset track.
9. The apparatus of claim 6, wherein the second application is an application associated with the first application;
the receiving module is further configured to receive a sixth input when the display module displays the interface of the second application before receiving the first input;
the display module is further configured to cancel displaying the interface of the second application program, display the desktop of the electronic device, and mark the second application program in response to the sixth input;
wherein the marked second application is associated with any application that runs in the foreground after the sixth input; the first input is used for triggering the interface of an application program which runs in a background and is associated with the first application program of the electronic equipment before the first interface is switched to receive the first input.
10. The apparatus of claim 9,
the display module is specifically configured to cancel displaying the first interface and display a second interface in response to the first input under the condition that the input of the first input is matched with the sixth input.
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 according to any one of claims 1-5.
12. A readable storage medium, on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the application switching method according to any one of claims 1-5.
CN202110343067.5A 2021-03-30 2021-03-30 Application program switching method and device and electronic equipment Pending CN113515216A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110343067.5A CN113515216A (en) 2021-03-30 2021-03-30 Application program switching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110343067.5A CN113515216A (en) 2021-03-30 2021-03-30 Application program switching method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113515216A true CN113515216A (en) 2021-10-19

Family

ID=78061877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110343067.5A Pending CN113515216A (en) 2021-03-30 2021-03-30 Application program switching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113515216A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114942807A (en) * 2022-04-27 2022-08-26 维沃移动通信有限公司 Application program switching method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114942807A (en) * 2022-04-27 2022-08-26 维沃移动通信有限公司 Application program switching method and device

Similar Documents

Publication Publication Date Title
CN111857509A (en) Split screen display method and device and electronic equipment
CN112269508B (en) Display method and device and electronic equipment
CN113163050B (en) Session interface display method and device
CN113703624A (en) Screen splitting method and device and electronic equipment
CN113126838A (en) Application icon sorting method and device and electronic equipment
CN113194024B (en) Information display method and device and electronic equipment
CN112148165A (en) Display method and device and electronic equipment
CN112433693A (en) Split screen display method and device and electronic equipment
WO2022253181A1 (en) Icon arrangement method and apparatus, and electronic device
CN112269501A (en) Icon moving method and device and electronic equipment
CN112162808A (en) Interface display method and device and electronic equipment
CN112148169B (en) Identification display control method and device and electronic equipment
CN111831177B (en) Application icon display method and device and electronic equipment
CN112764611A (en) Application program control method and device and electronic equipment
CN112269513A (en) Interface display method and device and electronic equipment
CN113515216A (en) Application program switching method and device and electronic equipment
CN112181559A (en) Interface display method and device and electronic equipment
CN111638828A (en) Interface display method and device
CN112148175B (en) Notification display mode setting method and device, electronic equipment and storage medium
CN114416264A (en) Message display method and device
CN113485625A (en) Electronic equipment response method and device and electronic equipment
CN113885981A (en) Desktop editing method and device and electronic equipment
CN114090110A (en) Application program starting method and device and electronic equipment
CN113900554A (en) Application icon management method and device and electronic equipment
CN113885748A (en) Object switching method and device, electronic equipment and readable storage 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