Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims herein are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first icon and the second icon, etc. are for distinguishing different icons, rather than for describing a particular order of the icons.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or 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 invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of processing units means two or more processing units, or the like; plural elements means two or more elements, and the like.
The embodiment of the invention provides an application program switching method and electronic equipment, which can receive first input of a user to a first icon, wherein the first icon is an icon corresponding to a first application program, and the first icon is displayed on an interface of a second application program in a floating manner; and responding to the first input, updating and displaying an interface of a second application program as an interface of the first application program, wherein the interface of the first application program comprises a second icon displayed in a floating mode, and the second icon is an icon corresponding to the second application program. Through this scheme, show the icon that has another APP to correspond on the interface of an APP, the user only needs to operate the icon that another APP corresponds, can follow the interface direct switch of current APP to the interface of another APP, realizes the fast switch-over between the different APPs, the simple operation. Therefore, the embodiment of the invention can improve the efficiency of switching different APPs by the electronic equipment and improve the use experience of users.
The electronic device in the embodiment of the present invention may be an electronic 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 invention are not limited in particular.
Next, a software environment applied by the application program switching method provided by the embodiment of the present invention is described by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the method for switching an application program provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the method for switching an application program may operate based on the android operating system shown in fig. 1. Namely, the processor or the electronic device can implement the application switching method provided by the embodiment of the invention by running the software program in the android operating system.
The electronic equipment in the embodiment of the invention can be a mobile terminal or a non-mobile terminal. For example, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiment of the present invention is not limited in particular.
The execution main body of the application switching method provided in the embodiment of the present invention may be the electronic device, or may also be a functional module and/or a functional entity capable of implementing the application switching method in the electronic device, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily describe the application switching method provided by the embodiment of the present invention.
The following describes an application switching method provided in an embodiment of the present invention by way of example with reference to the accompanying drawings.
As shown in fig. 2, an embodiment of the present invention provides an application switching method, which may includesteps 201 to 202 described below.
Step 201, under the condition that the first icon is displayed in a floating manner on the user interface of the second application program, the electronic device receives a first input of the first icon by a user, wherein the first icon is an icon corresponding to the first application program.
Optionally, in this embodiment of the present invention, the first input may be a click input (for example, a single-click input or a double-click input) of the user on the first icon, or may be a long-press input (for example, an input in which a press duration is greater than or equal to a preset threshold) of the user on the first icon, or may be any other input meeting an actual use requirement, which may specifically be determined according to the actual use requirement, which is not limited in this embodiment of the present invention.
Step 202, the electronic device responds to the first input, displays a user interface of the first application program, and displays a second icon in a floating manner on the user interface of the first application program, wherein the second icon is an icon corresponding to the second application program.
And the first application program and the second application program have a binding relationship. For convenience of explanation, the first application is hereinafter referred to as APP1, and the second application is hereinafter referred to as APP 2.
In an embodiment of the present invention, the interface of the APP2 may be any interface of the APP2, for example, may be a main interface of the APP2, or may be a functional interface of the APP2 (i.e., a functional interface of the APP 2). Similarly, the interface of the APP1 may be any interface of the APP1, for example, a main interface of the APP1, or a functional interface of the APP1 (i.e., a functional interface of the APP 1).
In the embodiment of the present invention, as shown in fig. 3 (a), it is assumed that theinterface 31 of the APP2 is currently displayed on the electronic device, and thefirst icon 32 corresponding to the APP1 is displayed on theinterface 31 of the APP2 in a suspended manner, and if the user needs to switch from theinterface 31 of the APP2 currently displayed to the interface of the APP1, at this time, the user may perform a selection operation (i.e., the first input) on thefirst icon 32 to trigger the electronic device to display the interface of the APP 1. Accordingly, as shown in (b) in fig. 3, the electronic device may update theinterface 31 of the APP2 to be displayed as theinterface 33 of the APP1, thereby enabling switching from the interface of the APP2 to the interface of the APP1, i.e., enabling switching from the APP2 to the APP 1. As shown in fig. 3 (b), the electronic device displays asecond icon 34 corresponding to the APP2 in a floating manner on theinterface 33 of the APP 1.
Further, as shown in (a) in fig. 4, assuming that the electronic device currently displays theinterface 33 of APP1 and thesecond icon 34 corresponding to APP2 is displayed in a suspended manner on theinterface 33 of APP1, if the user needs to switch from theinterface 33 of APP1 currently displayed to the interface of APP2, similar to the above implementation process of switching from APP2 to APP1, the user may perform a selection operation (similar to the first input to the first icon) on thesecond icon 34 displayed in a suspended manner on theinterface 33 of APP1 to trigger the electronic device to display the interface of APP 2. Accordingly, as shown in (b) in fig. 4, the electronic device may update theinterface 33 of the APP1 to be displayed as theinterface 31 of the APP2, thereby enabling switching from the interface of the APP1 to the interface of the APP2, i.e., enabling switching from the APP1 to the APP 2. As shown in fig. 4 (b), the electronic device displays asecond icon 32 corresponding to the APP1 in a floating manner on theinterface 31 of the APP 2.
Thus, by the implementation procedure described above, a switch from APP2 to APP1, and a switch from APP1 to APP2 can be implemented, so that a back-and-forth switch between APP1 and APP2 can be implemented.
It should be noted that, the foregoing is an exemplary illustration of implementing back-and-forth switching between two APPs, and it is understood that the embodiments of the present invention include, but are not limited to, switching between two APPs, and may also include switching between three or more APPs.
For example, as shown in fig. 5 (a), assuming that the electronic device currently displays theinterface 33 of APP1, and thesecond icon 34 corresponding to APP2, thethird icon 35 corresponding to APP3, and thefourth icon 36 corresponding to APP4 are displayed in a suspended manner on theinterface 33 of APP1, if the user needs to switch from theinterface 33 of APP1 currently displayed to the interface of APP3, similar to the above implementation process of switching from APP1 to APP2, the user may perform a selection operation on thethird icon 35 displayed in a suspended manner on theinterface 33 of APP1 (similar to the first input of the first icon) to trigger the interface displayed by the electronic device from the interface of APP1 to the interface ofAPP 3.
Accordingly, as shown in (b) in fig. 5, the electronic device may update theinterface 33 of the APP1 to be displayed as theinterface 37 of the APP3, thereby enabling switching from the interface of the APP1 to the interface of the APP3, i.e., enabling switching from the APP1 to theAPP 3. Also, as shown in (b) in fig. 5, the electronic apparatus displays asecond icon 34 corresponding to APP2, asecond icon 32 corresponding to APP1, and afourth icon 36 corresponding to APP4 in a floating manner on theinterface 37 ofAPP 3.
It is understood that, referring to (a) in fig. 5, the user may perform a selection operation on any one of thesecond icon 34, thethird icon 35 and thefourth icon 36 displayed in a floating manner on theinterface 33 of the APP1, so as to trigger the electronic device to switch the displayed interface from theinterface 33 of the APP1 to the interface of the APP corresponding to the icon selected by the user. Of course, referring to (b) in fig. 5, the user may perform a selection operation on any one of thesecond icon 34, thefirst icon 32 and thefourth icon 36 displayed in a floating manner on theinterface 37 of the APP3, so as to trigger the electronic device to switch the displayed interface from theinterface 37 of the APP3 to the interface of the APP corresponding to the icon selected by the user. Thus, through the implementation process, back-and-forth switching among APP1, APP2, APP3, APP4 can be achieved.
It is to be understood that the four APP icons are an exemplary list, that is, embodiments of the present invention include, but are not limited to, the four APP icons listed above. In actual implementation, any other number of APP icons may be included, which may be determined according to actual use requirements, and the embodiment of the present invention is not limited. That is, through the implementation process described above, switching back and forth between two or more APPs may be implemented.
The following is a specific implementation manner of the APP switching method provided by the embodiment of the present invention, in combination with a specific application scenario.
Application scenarios: suppose that a large number of practice problems are displayed in the interface of the APP1 but the copy function is not supported, and the user needs to store these practice problems in the document of the APP 2. This usually requires operations such as screen capture, recognition, copying, and pasting, and since many practice problems can be made and the practice problems can be handled only one page, frequent switching of applications is required.
If the traditional APP switching method is adopted, at this time, the user needs to trigger the electronic equipment to switch from the interface of the APP2 to the recent task interface, then operates in the recent task interface, and triggers the electronic equipment to switch from the recent task interface to the interface of the APP1, so that switching from the interface of the APP2 to the interface of the APP1 is realized; further, the user needs to trigger the electronic device to switch from the interface of the APP1 to the recent task interface, then perform selection operation in the recent task interface, trigger the electronic device to switch from the recent task interface to the interface of the APP2, and thus realize switching from the interface of the APP1 to the interface of the APP 2. Therefore, the traditional APP switching method needs to indirectly realize switching among different APPs through selection operation in a recent task interface, and is complex in operation and low in efficiency, so that user experience can be influenced.
If the APP switching method provided by the embodiment of the present invention is adopted, a user may perform a selection operation on the icon 1 corresponding to the APP1, which is displayed on the interface of the APP2 in a floating manner, to trigger the electronic device to switch the displayed interface from the interface of the APP2 to the interface of the APP1 (at this time, the icon 2 corresponding to the APP2 is displayed on the interface of the APP1 in a floating manner), so as to directly switch from the interface of the APP2 to the interface of the APP 1. Further, the user may perform a selection operation on the icon 2 corresponding to the APP2 displayed in a floating manner on the interface of the APP1, so as to trigger the electronic device to switch the displayed interface from the interface of the APP1 to the interface of the APP2 (at this time, the icon 1 corresponding to the APP1 is displayed in a floating manner on the interface of the APP2), so as to directly switch from the interface of the APP1 to the interface of the APP 2. Therefore, the APP switching method provided by the embodiment of the invention can realize direct and rapid switching among different APPs, is convenient and fast to operate, can improve the efficiency of switching among different APPs by the electronic equipment, and improves the use experience of users.
According to the application program switching method provided by the embodiment of the invention, under the condition that the first icon is displayed on the user interface of the second application program in a floating manner, the first input of the first icon by a user is received, wherein the first icon is the icon corresponding to the first application program, and the first icon is displayed on the interface of the second application program in a floating manner; and responding to the first input, displaying a user interface of the first application program, and displaying a second icon in a floating mode on the user interface of the first application program, wherein the second icon is an icon corresponding to the second application program. Through this scheme, show the icon that has another APP to correspond on the interface of an APP, the user only needs to operate the icon that another APP corresponds, can follow the interface direct switch of current APP to the interface of another APP, realizes the fast switch-over between the different APPs, the simple operation. Therefore, the embodiment of the invention can improve the efficiency of switching different APPs by the electronic equipment and improve the use experience of users.
Optionally, in this embodiment of the present invention, before the electronic device receives the first input of the first icon by the user, the electronic device may receive a trigger input of the user, and in response to the input, establish and store the binding relationship between the APP1 and the APP 2.
In the embodiment of the present invention, if a user needs to implement back-and-forth switching between APP1 and APP2 through an electronic device, the user may first preset a binding relationship between APP1 and APP2, that is, through input, trigger the electronic device to bind APP1 and APP2, that is, establish a binding relationship between APP1 and APP 2. In this way, the binding relationship between APP1 and APP2 is stored in the electronic device (i.e., the binding is successful).
For example, taking binding APP1 and APP2 as an example, if the electronic device displays an interface of APP1, an icon corresponding to APP2 may be displayed on the interface of APP1 in a floating manner. Further, the switching between different APPs may be realized through theabove step 201 andstep 202.
Alternatively, assuming that APP2 is bound for APP1, APP1 may be referred to as the primary application and APP2 may be referred to as the secondary application. Alternatively, assuming that APP2, APP3 and APP4 are bound for APP1, APP1 may be referred to as the primary application and APP2, APP3 and APP4 may be referred to as the secondary application.
Optionally, in this embodiment of the present invention, the trigger input may be an input of a user to a function control (for example, a binding control) for triggering the binding, or may be an input of a user to an icon of APP1 and an icon of APP2, or may be any other input that meets an actual use requirement, which may be determined specifically according to the actual use requirement, which is not limited in this embodiment of the present invention.
It should be noted that different trigger inputs may correspond to different control operations. In the following, through the first implementation manner, the second implementation manner, and the third implementation manner, a preset manner of presetting an APP (e.g., APP1, or more APPs) that can be switched for a certain APP (e.g., APP2) is described.
The first implementation mode comprises the following steps:
the first implementation is applicable to a scenario where the user interface of APP2 is currently displayed, and APP1 to be bound is already running in the background. Beforestep 201 in fig. 2, the APP switching method provided in the embodiment of the present invention may further include steps 203 to 206 described below.
Step 203, the electronic device receives a second input of the user.
And step 204, the electronic equipment responds to the second input, and displays a function window on the user interface of the second application program, wherein the function window comprises a target control.
And step 205, the electronic device receives a third input of the target control from the user.
In the case where the electronic device displays the interface of APP2, the third input may be a click input to a target control (e.g., "one-touch binding" control), which is a trigger control that establishes a binding relationship between APP2 and a background running application.
Step 206, the electronic device responds to the third input, and displays a first icon in a floating manner on the user interface of the second application program, wherein the first application program corresponding to the first icon is an APP running in the background.
In the embodiment of the present invention, in a case that a current display interface is a user interface of APP2, if a user needs to bind APP2 and APP1, the user may pull down on the interface (i.e., a second input), pop up a function window on a screen, then click a target control in the function window (i.e., a third input), and accordingly, the electronic device binds APP2 and APP1 running in the background and stores the binding relationship between the two, and displays a first icon in a floating manner on the user interface of APP 2.
For example, in the case where the electronic device displays theinterface 31 of the APP2 (as shown in (a) of fig. 6), as shown in (b) of fig. 6, the user may call up the menu interface 38 (or notification bar), and then may click on the "one-touch binding"control 39 on themenu interface 38 to set the shortcut binding, that is, bind the APP1 running in the background for the APP 2. After the click operation, as shown in (c) of fig. 6, the APP1 running in the background floats on theinterface 31 of the APP2 in the form of afloat icon 34, at which point the binding is completed.
Alternatively, if multiple APPs (e.g., APP1, APP3, APP4, APP5) are running in the background, the user can bind all the APPs running in the background to APP2 by clicking the "one-click"control 39 on the menu interface 38 (as shown in fig. 6 (b)), and after clicking, as shown in fig. 6 (d), all the other APPs running in the background are suspended on theinterface 31 of APP2 in the form of a suspendedicon 40.
The second implementation mode comprises the following steps:
the second implementation need not consider whether APP2 is running in the foreground and APP1 to be bound is running in the background. Beforestep 201 in fig. 2, the APP switching method provided in the embodiment of the present invention may further include steps 207 to 210 described below.
And step 207, the electronic device receives a fifth input of the second icon by the user.
And step 208, the electronic equipment responds to the fifth input and displays a second icon in the first area of the desktop interface.
Step 209, the electronic device receives a sixth input that the user adds the first icon to the first area.
Step 210, the electronic device responds to the sixth input, displays the user interface of the second application program, and displays the first icon on the user interface of the second application program in a floating manner.
In the embodiment of the present invention, when a desktop interface is displayed and the desktop interface includes a first icon and a second icon, if a user needs to bind APP2 and APP1, the user may perform a fifth input on the second icon in the desktop interface, for example, drag the second icon on the desktop interface to move to form a closed first area, then perform a sixth input on the first icon, for example, drag the first icon into the first area, and accordingly, the electronic device binds APP2 and APP1 and stores the binding relationship between the APP2 and APP1, jumps from the desktop interface to the user interface of APP2, and displays the first icon in a suspended manner on the user interface of APP 2.
For example, as shown in fig. 7 (a), a user may operate (e.g., long press on icon 42 of APP2) ondesktop interface 41 to make all APPs ondesktop interface 41 in a floating state (e.g., editable state); the user may then drag the icon 42 of APP2 to circle on the desktop interface; then, as shown in fig. 7 (b), an area 43 (e.g., a circular area) is displayed on the desktop interface, and thespecific area 43 includes an icon of APP 2; further, the user may add an icon of an APP (e.g., APP1) to be bound to the specific area 43 (by operation such as dragging or clicking an icon), as shown in fig. 7 (c), and finally click a blank area (or home key) of thedesktop interface 41 to complete the binding. At this time, if the user clicks the area 43 (or the icon of APP2 therein), the electronic device displays theinterface 44 of APP2 and the icon of APP1 is displayed in a floating manner on theinterface 44 of APP2, as shown in (d) in fig. 7.
The third implementation mode comprises the following steps:
the third implementation is applicable to APPs to be bound (e.g., APP1 and APP2) already running in the background. Beforestep 201 in fig. 2, the APP switching method provided in the embodiment of the present invention may further include steps 211 to 213 described below.
And step 211, displaying the recent task interface by the electronic device under the condition that the first application program and the second application program run in the background.
The recent task interface comprises a first task identifier corresponding to the first application program and a second task identifier corresponding to the second application program.
Step 212, the electronic device receives a fourth input from the user.
The fourth input is an input of superimposing (for example, partially superimposing or completely superimposing) the first task identifier on the second task identifier, or the fourth input is an input of adding both the first task identifier and the second task identifier to the preset area. It will be appreciated that the possible implementations of the fourth input described above are all exemplary lists, i.e., embodiments of the present invention include, but are not limited to, the various inputs listed above.
Optionally, the first task identifier and the second task identifier may be both icons, or task cards, or interface thumbnails, or may be identifiers in any other possible form.
The preset area may be a preset trigger area for binding at least two applications, that is, if at least two task identifiers are added to the preset area, the electronic device may bind the applications corresponding to the at least two task identifiers.
Step 213, the electronic device displays the user interface of the second application program in response to the fourth input, and displays the first icon on the user interface of the second application program in a floating manner.
In the embodiment of the present invention, when a recent task interface is displayed and includes a first task identifier corresponding to a first application and a second task identifier corresponding to a second application, if a user needs to bind APP2 and APP1, the user may perform a fourth input on the recent task interface, for example, superimpose the first task identifier on the second task identifier, or add both the first task identifier and the second task identifier to a preset region, and accordingly, the electronic device binds APP2 and APP1 and stores the binding relationship therebetween, jumps from the recent task interface to the user interface of APP2, and displays the first icon in a suspended manner on the user interface of APP 2.
Illustratively, taking the fourth input as an input for adding both the first task identifier and the second task identifier to the preset area as an example, as shown in (a) of fig. 8, the user first calls up therecent task interface 45, as shown in (b) and (c) of fig. 8, and the binding of APP1 and APP2 is achieved by dragging theidentifier 46 of APP1 and theidentifier 47 of APP2 to thelower area 48.
On the one hand, if the user clicks on the area 48 (or any icon in the area, for example, an icon of APP2), the electronic device displays theinterface 49 of APP2, and theicon 50 corresponding to APP1 is displayed in a floating manner on theinterface 49 of APP2, as shown in (d) in fig. 8.
On the other hand, if the user clicks the home button (not shown) of the electronic device, the electronic device will return to the desktop interface from therecent task interface 45 as shown in (c) of fig. 8, and the icons of the bound APP1 and APP2 are displayed in thearea 52 in thedesktop interface 51 as shown in fig. 9. At this time, if the user clicks thearea 52, as shown in fig. 8 (d), the electronic apparatus jumps from thedesktop interface 51 to theinterface 49 of the APP2, and theicon 50 corresponding to the APP1 is displayed in a floating manner on theinterface 49 of the APP 2.
By way of further example, taking the fourth input as an input for overlaying the first task identifier on the second task identifier as an example, as shown in (a) in fig. 10, the user first calls up therecent task interface 53, as shown in (b) and (c) in fig. 10, and the binding between APP1 and APP2 is achieved by dragging theidentifier 54 of APP2 to the area where theidentifier 55 of APP1 is located. Wherein, as the distance between theidentifier 54 of the APP2 and theidentifier 55 of the APP1 becomes closer, theidentifier 54 of the APP2 becomes smaller, and theidentifier 54 of the APP2 becomes theicon 56. When the finger leaves theidentifier 54 of the APP2, as shown in (d) in fig. 10, theidentifier 55 of the APP1 will automatically expand to the full screen, that is, the electronic device displays theinterface 57 of the APP2, and theicon 58 corresponding to the APP1 is displayed in a suspended manner on theinterface 57 of the APP 2.
In the embodiment of the invention, after the APP2 and the APP1 are bound, the electronic device directly displays the interface of the APP2 and displays the first icon in a floating manner on the interface of the APP 2. Optionally, after binding APP2 and APP1, the electronic device may further display an interface of a second application program and hover displaying the first icon on the interface of the second application program when receiving the input of the user. For example, referring back to (c) and (d) in fig. 8, after binding APP2 and APP1, the electronic device displays the interface of APP2 and hovers the first icon over the interface of APP2 after the user clicks onregion 48.
Optionally, in this embodiment of the present invention, the electronic device may receive a drag input of the first icon by the user, and update a display position of the first icon on the interface of the second application program in response to the input.
The dragging operation may be a dragging operation in any direction, such as clockwise dragging, counterclockwise dragging, upward dragging, downward dragging, leftward dragging, or rightward dragging. As shown in fig. 11 (a) and (b), the display position of at least one icon may be updated in the left-right direction or in the up-down direction as a whole.
Optionally, afterstep 202 in fig. 2, the method for switching an application program according to the embodiment of the present invention may further include step 214 and step 215 described below.
In step 214, the electronic device receives a seventh input from the user.
Step 215, the electronic device cancels displaying the first icon on the user interface of the second application in response to the seventh input.
Wherein the seventh input may be any one of the following (1) to (3):
(1) an input to close at least one of the first application and the second application;
(2) an input to move the first icon out of the interface of the second application;
(3) an input to move the second icon out of the interface of the first application.
It is understood that the specific implementation of the seventh input is an exemplary list, that is, the embodiment of the present invention includes, but is not limited to, the above listed inputs. In practical implementation, the fifth input may further include any other possible input, which may be determined according to practical use requirements, and the embodiment of the present invention is not limited.
And the electronic equipment can respond to the seventh input, cancel the first icon on the user interface displaying the second application program, and delete or release the binding relationship between the first application program and the second application program.
For example, referring back to fig. 3 (a), if the user triggers the electronic device to exit the current main APP (e.g., APP2) (e.g., clear the identifier of APP2 on the multitasking interface), the binding relationship between APP2 and APP1 is released.
For another example, referring back to (a) in fig. 3, if the user triggers the electronic device to drag a sub APP (e.g., APP1) out of the screen, the binding relationship between APP2 and APP1 is released.
As shown in fig. 12, an embodiment of the present invention provides anelectronic device 700, where theelectronic device 700 may include areceiving module 701 and adisplay module 702;
the receivingmodule 701 is configured to receive a first input of a user to a first icon under the condition that the first icon is displayed in a suspended manner on a user interface of a second application program, where the first icon is an icon corresponding to the first application program;
thedisplay module 702 is configured to, in response to the first input received by the receivingmodule 701, display a user interface of a first application program, and display a second icon in a floating manner on the user interface of the first application program, where the second icon is an icon corresponding to the second application program.
Optionally, in this embodiment of the present invention, a binding relationship exists between the first application program and the second application program.
Optionally, in this embodiment of the present invention, the receivingmodule 701 is further configured to receive a second input of the user before receiving the first input of the first icon by the user;
thedisplay module 702 is further configured to display a function window on the user interface of the second application in response to the second input received by the receivingmodule 701, where the function window includes a target control;
the receivingmodule 701 is further configured to receive a third input of the target control from the user;
thedisplay module 702 is further configured to, in response to the third input received by the receivingmodule 701, hover and display a first icon on the user interface of the second application, where the first application corresponding to the first icon is an application running in the background.
Optionally, in this embodiment of the present invention, before the receivingmodule 701 receives the first input of the first icon by the user, in a case that the first application program and the second application program run in the background, thedisplay module 702 is further configured to display a recent task interface, where the recent task interface includes a first task identifier corresponding to the first application program and a second task identifier corresponding to the second application program;
the receivingmodule 701 is further configured to receive a fourth input of the user, where the fourth input is an input of superimposing the first task identifier on the second task identifier, or the fourth input is an input of adding both the first task identifier and the second task identifier to a preset area;
thedisplay module 702 is further configured to display the user interface of the second application and to hover the first icon on the user interface of the second application in response to the fourth input received by the receivingmodule 701.
Optionally, in this embodiment of the present invention, the receivingmodule 701 is further configured to receive a fifth input of the second icon from the user before receiving the first input of the first icon from the user;
thedisplay module 702 is further configured to display a second icon in the first area of the desktop interface in response to the fifth input received by the receivingmodule 701;
the receivingmodule 701 is further configured to receive a sixth input that the user adds the first icon to the first area;
thedisplay module 702 is further configured to display the user interface of the second application and to hover the first icon on the user interface of the second application in response to the sixth input received by the receivingmodule 701.
Optionally, in this embodiment of the present invention, the receivingmodule 701 is further configured to receive a seventh input from the user;
thedisplay module 702 is further configured to cancel displaying the first icon on the user interface of the second application in response to the seventh input received by the receivingmodule 701;
wherein the seventh input is any one of: an input to close at least one of the first application and the second application; an input to move the first icon out of the user interface of the second application; an input to move the second icon out of the user interface of the first application.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and is not described herein again to avoid repetition.
The electronic device provided by the embodiment of the invention can receive the first input of the first icon by the user under the condition that the first icon is displayed on the user interface of the second application program in a floating manner, wherein the first icon is an icon corresponding to the first application program; and responding to the first input, displaying a user interface of the first application program, and displaying a second icon in a floating mode on the user interface of the first application program, wherein the second icon is an icon corresponding to the second application program. Through this scheme, show the icon that has another APP to correspond on the interface of an APP, the user only needs to operate the icon that another APP corresponds, can follow the interface direct switch of current APP to the interface of another APP, realizes the fast switch-over between the different APPs, the simple operation. Therefore, the embodiment of the invention can improve the efficiency of switching different APPs by the electronic equipment and improve the use experience of users.
Fig. 13 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention. As shown in fig. 13, theelectronic device 800 includes, but is not limited to: aradio frequency unit 801, anetwork module 802, anaudio output unit 803, aninput unit 804, asensor 805, adisplay unit 806, auser input unit 807, aninterface unit 808, amemory 809, aprocessor 810, and apower supply 811. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 13 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Theuser input unit 807 is configured to receive a first input of a first icon by a user when the first icon is displayed in a floating manner on the user interface of the second application, where the first icon is an icon corresponding to the first application and is displayed in a floating manner on the interface of the second application; thedisplay unit 806 is configured to display the user interface of the first application program according to the first input received by theuser input unit 807, and display a second icon on the user interface of the first application program in a floating manner, where the second icon is an icon corresponding to the second application program.
The embodiment of the invention provides electronic equipment, which can receive first input of a user to a first icon under the condition that the first icon is displayed on a user interface of a second application program in a floating manner, wherein the first icon is an icon corresponding to the first application program and is displayed on the interface of the second application program in the floating manner; and responding to the first input, displaying a user interface of the first application program, and displaying a second icon in a floating mode on the user interface of the first application program, wherein the second icon is an icon corresponding to the second application program. Through this scheme, show the icon that has another APP to correspond on the interface of an APP, the user only needs to operate the icon that another APP corresponds, can follow the interface direct switch of current APP to the interface of another APP, realizes the fast switch-over between the different APPs, the simple operation. Therefore, the embodiment of the invention can improve the efficiency of switching different APPs by the electronic equipment and improve the use experience of users.
It should be understood that, in the embodiment of the present invention, theradio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to theprocessor 810; in addition, the uplink data is transmitted to the base station. In general,radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, theradio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
Theelectronic device 800 provides wireless broadband internet access to the user via thenetwork module 802, such as to assist the user in sending and receiving e-mail, browsing web pages, and accessing streaming media.
Theaudio output unit 803 may convert audio data received by theradio frequency unit 801 or thenetwork module 802 or stored in thememory 809 into an audio signal and output as sound. Also, theaudio output unit 803 may also provide audio output related to a specific function performed by the electronic apparatus 800 (e.g., a call signal reception sound, a message reception sound, etc.). Theaudio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
Theinput unit 804 is used for receiving an audio or video signal. Theinput unit 804 may include a Graphics Processing Unit (GPU) 8041 and amicrophone 8042, and thegraphics processor 8041 processes image data of a still picture or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on thedisplay unit 806. The image frames processed by thegraphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via theradio frequency unit 801 or thenetwork module 802. Themicrophone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via theradio frequency unit 801 in case of a phone call mode.
Theelectronic device 800 also includes at least onesensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of thedisplay panel 8061 according to the brightness of ambient light and a proximity sensor that can turn off thedisplay panel 8061 and/or the backlight when theelectronic device 800 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); thesensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
Thedisplay unit 806 is used to display information input by the user or information provided to the user. Thedisplay unit 806 may include adisplay panel 8061, and thedisplay panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
Theuser input unit 807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. Specifically, theuser input unit 807 includes atouch panel 8071 andother input devices 8072. Thetouch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near thetouch panel 8071 using a finger, a stylus, or any other suitable object or accessory). Thetouch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 810, receives a command from theprocessor 810, and executes the command. In addition, thetouch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to thetouch panel 8071, theuser input unit 807 can includeother input devices 8072. In particular,other input devices 8072 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.
Further, thetouch panel 8071 can be overlaid on thedisplay panel 8061, and when thetouch panel 8071 detects a touch operation on or near thetouch panel 8071, the touch operation is transmitted to theprocessor 810 to determine the type of the touch event, and then theprocessor 810 provides a corresponding visual output on thedisplay panel 8061 according to the type of the touch event. Although thetouch panel 8071 and thedisplay panel 8061 are shown in fig. 13 as two separate components to implement the input and output functions of the electronic device, in some embodiments, thetouch panel 8071 and thedisplay panel 8061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
Theinterface unit 808 is an interface for connecting an external device to theelectronic apparatus 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Theinterface unit 808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within theelectronic device 800 or may be used to transmit data between theelectronic device 800 and external devices.
Thememory 809 may be used to store software programs as well as various data. Thememory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, thememory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Theprocessor 810 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in thememory 809 and calling data stored in thememory 809, thereby monitoring the whole electronic device.Processor 810 may include one or more processing units; optionally, theprocessor 810 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated intoprocessor 810.
Theelectronic device 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and optionally, thepower supply 811 may be logically coupled to theprocessor 810 via a power management system to manage charging, discharging, and power consumption management via the power management system.
In addition, theelectronic device 800 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, including theprocessor 810 shown in fig. 13, thememory 809, and a computer program stored in thememory 809 and capable of running on theprocessor 810, where the computer program, when executed by theprocessor 810, implements each process of the foregoing application program switching method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program 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 computer-readable storage medium may include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
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.
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 an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method disclosed 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.