Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the mobile terminal 100 includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts 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 the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. 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. The interface unit 108 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 the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 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, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the application program switching method. The switching method of the application program can open the thumbnail of the background running application of the mobile terminal by sliding the upper edge or the lower edge touch control area of the display screen of the mobile terminal, then select the background running program to be switched by continuously sliding, stop sliding and remove touch operation after the selection is finished, automatically switch the selected background running program to the foreground running of the mobile terminal, do not need the hardware support of physical/touch keys in the whole switching process, can be realized by only operating once, and is convenient and quick.
Referring to fig. 3, fig. 3 is a flowchart illustrating a first embodiment of the method for switching an application program according to the present invention, in which the method for switching an application program includes:
and step S10, when the mobile terminal is in the unlocking bright screen state, detecting a sliding touch operation generated in a preset touch area of a display screen of the mobile terminal.
It can be understood that when using a mobile terminal such as a smart phone, a tablet computer, etc., people may often use multiple applications simultaneously, for example, some users like to open WeChat and QQ simultaneously when chatting with others, and some users like to play music in the background while watching novels; when the applications of panning are opened, the Aliwang and Payment can be opened at the same time, and the switching among several applications is often required, and the whole switching process is in the use process of the mobile terminal, so that all operations corresponding to the switching method of the application program provided by the invention are performed under the condition that the mobile terminal is in an unlocking and screen-lighting state.
When the mobile terminal is in an unlocking bright screen state, the sliding touch operation generated in a preset touch area of a display screen of the mobile terminal is detected in real time, the preset touch area is an upper edge touch operation area or a lower edge touch operation area of the display screen of the mobile terminal, and specifically, the step of detecting the sliding touch operation generated in the preset touch area of the mobile terminal comprises the following steps:
and detecting sliding touch operation generated in the upper edge touch operation area or the lower edge touch operation area of the display screen of the mobile terminal.
For better understanding of the present invention, referring to fig. 4, fig. 4 is a schematic view of a touch area of a display screen of a mobile terminal according to the present invention, in fig. 4, an "upper edge touch operation area" or a "lower edge touch operation area" on the display screen of the mobile terminal is a preset touch area indicated in the above step S10, and when the mobile terminal is in an unlocked bright screen state, a sliding touch operation generated in the "upper edge touch operation area" or the "lower edge touch operation area" is detected in real time.
And step S20, when the sliding distance and the sliding direction of the sliding touch operation meet preset display conditions, displaying the thumbnail of the application running in the background of the mobile terminal on the display screen.
It can be understood that, for most current mobile terminals, when the "upper edge touch operation area" of the display screen is slid downwards (i.e. the "upper edge touch operation area" slides to the central area of the display screen), the message list hidden by the mobile terminal can be pulled downwards; and when the 'lower edge touch operation area' of the display screen is slid upwards (namely, the 'lower edge touch operation area' slides to the central area of the display screen), the control menu hidden in the mobile terminal can be pulled upwards.
Therefore, in the present embodiment, in order to distinguish from the slide control operation, the slide direction of the slide touch operation is parallel to the direction of the "upper edge touch operation region" or the "lower edge touch operation region".
For better understanding of the present invention, referring to fig. 5, fig. 5 is a schematic view of a sliding touch operation generated in a preset touch area of a display screen of the mobile terminal in the present invention, and in fig. 5, a user may slide left or right in the "upper edge touch operation area" to open a thumbnail of a background running application of the mobile terminal. The user may slide to the right at the leftmost end of the "upper edge touch operation area", slide to the left at the rightmost end of the "upper edge touch operation area", or slide to the left/right at an arbitrary area in the middle of the "upper edge touch operation area".
In order to ensure the sensitivity of the sliding touch operation, a sliding distance interval may be set, or a sliding direction interval may be set, and a certain error may exist between the sliding distance and the sliding direction of the sliding touch operation, for example, an error of 10 ° may exist between the sliding direction of the sliding touch operation and the "upper edge touch operation area".
Specifically, when the sliding distance and the sliding direction of the sliding touch operation meet preset display conditions, displaying the thumbnail of the application running in the background of the mobile terminal on a display screen.
For better understanding of the present invention, referring to fig. 6, fig. 6 is a schematic view of a scene in which thumbnails of applications running in the background of the mobile terminal are displayed on a display screen in the present invention, and in fig. 6, thumbnails of applications running in the background of the mobile terminal are displayed on the display screen, wherein when a plurality of applications running in the background of the mobile terminal are provided, the applications can be displayed in an overlapping manner according to the starting time of each application, for example, a "foreground application" currently running on the mobile terminal is placed on the top of the thumbnail, and "background running application 1" and "background running application 2" … … are displayed in an overlapping manner in a staggered manner on the bottom
And step S30, if the sliding touch operation is detected to continue sliding, controlling the thumbnail to circularly switch and display on the display screen according to the sliding of the sliding touch operation.
In this embodiment, after the sliding distance and the sliding direction of the sliding touch operation satisfy preset display conditions, and after a display screen displays a thumbnail of an application running in a background of the mobile terminal, if it is detected that the sliding touch operation continues to slide, the thumbnail is controlled to be displayed on the display screen in a circular switching manner according to the sliding of the sliding touch operation.
It should be understood that the sliding touch operation is continuous and uninterrupted, that is, after sliding a certain distance in the upper edge touch operation area or the lower edge touch operation area of the mobile terminal, the display screen of the mobile terminal displays a thumbnail of a background running application of the mobile terminal, at this time, if the sliding operation is continued, the thumbnail is circularly switched and displayed on the display screen according to the sliding of the sliding touch operation, taking fig. 6 as an example, if the sliding operation is continued for a certain distance (e.g., 0.5CM), a "background running application 1" is placed on the top layer of the thumbnail, and a "background running application 2", … … and a "foreground" application are displayed in a staggered and overlapped manner on the bottom layer of the thumbnail; if the user still continues to slide the same distance (such as 0.5CM), the 'background running application 2' is placed at the top layer of the thumbnail, and the 'foreground application' and 'background running application 1' … … are displayed in a staggered and overlapped mode at the bottom layer of the thumbnail
And step S40, when the sliding touch operation is detected to be released, switching the background running application corresponding to the thumbnail main page currently displayed on the display screen to the foreground running application.
In this embodiment, when it is detected that the sliding touch operation is released, that is, after it is detected that the finger of the user leaves the display screen of the mobile terminal, the background running application corresponding to the top layer of the main page of the thumbnail in the current display screen is switched to the foreground running, and at this time, the switching between the foreground application and the background application is completed. The thumbnail main page is a background running application thumbnail displayed on the top layer of the thumbnail.
According to the switching method of the application program, the thumbnail of the background running application of the mobile terminal can be opened by sliding the upper edge or the lower edge of the display screen of the mobile terminal, then the background running program to be switched is selected by continuously sliding, sliding is stopped and touch operation is released after the selection is completed, at the moment, the selected background running program is automatically switched to the foreground running of the mobile terminal, the whole switching process does not need hardware support of a physical/touch key and can be realized only by operating once, the switching method is convenient and quick, the technical problems that when the background application program of the mobile terminal is switched in the technology, the hardware support of the physical/touch key is needed, the switching process is complicated in steps are solved, and the use experience of a user is improved.
Further, based on the first embodiment of the method for switching an application program of the present invention described in fig. 3, in the second embodiment of the method for switching an application program of the present invention, when the sliding distance and the sliding direction of the sliding touch operation satisfy the preset display condition in step S20 shown in fig. 3, displaying a thumbnail of an application running in the background of the mobile terminal on the display screen includes:
and when the sliding distance is equal to a preset first distance and the sliding direction is parallel to the upper edge touch operation area or the lower edge touch operation area, displaying a thumbnail of the background running application of the mobile terminal on a display screen.
The sliding touch operation is continuous and uninterrupted, namely after the sliding is performed for a first distance in the upper edge touch operation area or the lower edge touch operation area of the mobile terminal, the thumbnail of the background running application of the mobile terminal is displayed on the display screen of the mobile terminal, and the first distance can be set according to the actual requirements of the user, for example, the first distance is set to be 1CM or 0.5 CM.
It is understood that the smaller the magnitude of the first distance, the higher the sensitivity of the slide touch operation, but the greater the possibility of the occurrence of the erroneous touch; the larger the magnitude of the first distance is, the lower the sensitivity of the slide touch operation is, but the less likely a false touch is to occur.
In order to ensure the sensitivity of the sliding touch operation, a sliding direction section may be set to allow a certain error in the sliding direction of the sliding touch operation, for example, an error of 10 ° in the sliding direction of the sliding touch operation from the "upper edge touch operation area" or the "upper edge touch operation area".
In the method for switching an application program according to this embodiment, when the sliding distance of the sliding touch operation is equal to a preset first distance, and the sliding direction of the sliding touch operation is parallel to the upper edge touch operation area or the lower edge touch operation area or the angle is smaller than a preset degree, a thumbnail of an application running in a background of the mobile terminal is displayed on the display screen, where the sliding distance and the sliding direction can be set by a user, so that the user can freely adjust the sensitivity of the sliding touch operation for switching the application program.
Further, based on the first and second embodiments of the method for switching an application program of the present invention, in a third embodiment of the method for switching an application program of the present invention, before detecting the sliding touch operation generated in the preset touch area of the display screen of the mobile terminal in step S10 shown in fig. 3, the method further includes:
and defining an edge touch area of the display screen of the mobile terminal close to the microphone side as an upper edge touch operation area or defining an edge touch area of the display screen of the mobile terminal close to the microphone side as a lower edge touch operation area in a software defined mode.
In this embodiment, an edge touch area of the display screen of the mobile terminal close to the microphone side may be defined as the upper edge touch operation area, and an edge touch area of the display screen of the mobile terminal close to the microphone side may be defined as the lower edge touch operation area, so that automatic switching of background applications of the mobile terminal may be implemented without any hardware improvement.
The switching method of the application program in this embodiment may customize the upper edge touch operation area or the lower edge touch operation area on the display screen of the mobile terminal in a software defined manner in advance, and may implement automatic switching of the background application of the mobile terminal without any hardware improvement.
Further, based on the first and second embodiments of the method for switching an application program of the present invention, in a fourth embodiment of the method for switching an application program of the present invention, before detecting a sliding touch operation generated in a preset touch area of a display screen of a mobile terminal in step S10 shown in fig. 3, the method further includes:
an independent first touch area is arranged in the edge area of the mobile terminal display screen close to the earphone side in advance and serves as the upper edge touch operation area, or an independent second touch area is arranged in the edge area of the mobile terminal display screen close to the microphone side and serves as the lower edge touch operation area.
In this embodiment, in order to improve the accuracy and sensitivity of the mobile terminal for switching the applications, an independent first touch area may be set in an edge area of the display screen of the mobile terminal close to the earpiece side, where the first touch area serves as the upper edge touch operation area, or an independent second touch area may be set in an edge area of the display screen of the mobile terminal close to the microphone side, where the second touch area serves as the lower edge touch operation area, where the upper edge touch operation area or the lower edge touch operation area is specially used for receiving the sliding touch operation, so as to implement automatic switching of the background applications of the mobile terminal.
Because the upper edge touch operation area or the lower edge touch operation area is specially used for receiving the sliding touch operation, the mobile terminal is not easily interfered by other touch operations, and the application switching accuracy and sensitivity of the mobile terminal can be effectively improved.
According to the switching method of the application program, an independent touch area can be set on the display screen of the mobile terminal in advance to serve as the upper edge touch operation area or the lower edge touch operation area, so that interference of other touch operations is eliminated, and the accuracy and the sensitivity of application switching of the mobile terminal are effectively improved.
Further, based on the first and second embodiments of the method for switching an application program according to the present invention, in a fifth embodiment of the method for switching an application program according to the present invention, when it is detected that the sliding touch operation continues to slide in step S30 shown in fig. 3, the controlling the thumbnails to cyclically switch and display on the display screen according to the sliding touch operation includes:
and after the sliding distance is equal to the first distance, automatically switching the thumbnail displayed currently on the display screen when the sliding touch operation is detected to slide a preset second distance.
In this embodiment, the sliding touch operation is continuous and uninterrupted, that is, after sliding for a certain distance in the upper edge touch operation area or the lower edge touch operation area of the mobile terminal, the display screen of the mobile terminal displays the thumbnail of the application running in the background of the mobile terminal, and at this time, if the sliding is continued, the thumbnail is circularly switched and displayed on the display screen according to the sliding touch operation.
Taking fig. 6 as an example, after the sliding distance of the sliding touch operation is equal to the first distance, if the sliding operation is continued for the second distance, automatically switching the currently displayed thumbnail of the display screen, for example, placing "background running application 1" on the top layer of the thumbnail, and staggeredly and overlappingly displaying "background running application 2", … … "foreground application" on the bottom layer of the thumbnail; if the sliding touch operation continues to slide for the second distance again, switching the currently displayed thumbnail of the display screen again, for example, placing the "background running application 2" on the top layer of the thumbnail, and displaying the "foreground application" and the "background running application 1" … … in a staggered and overlapped manner on the bottom layer of the thumbnail
After the sliding distance is equal to the first distance, the user can continue to slide along the same direction, can slide along the opposite direction, and can also slide back and forth to switch the thumbnails displayed on the display screen.
However, it is understood that the smaller the second distance, the higher the sensitivity of the slide touch operation is, but the higher the possibility of the occurrence of the erroneous touch is; the larger the magnitude of the first distance is, the lower the sensitivity of the slide touch operation is, and the less likely a false touch is to occur.
In addition, after the sliding distance of the sliding touch operation is equal to the first distance, under the condition that the sliding touch operation is kept to be released, the sliding device can slide back and forth along the same straight line in the upper edge touch operation area or the lower edge touch operation area so as to select a proper background running application.
In the method for switching an application program according to this embodiment, after the sliding distance of the sliding touch operation is equal to the first distance, after each preset second distance of the sliding touch operation is detected, the thumbnail currently displayed on the display screen is automatically switched. Wherein, since the second distance can be set by the user himself, the user can freely adjust the sensitivity of the sliding touch operation for switching the thumbnail.
Further, based on the first, second, and fifth embodiments of the method for switching an application program of the present invention, in a sixth embodiment of the method for switching an application program of the present invention, the method for switching an application program further includes:
after the sliding touch operation generated in the touch area is detected, judging whether a preset change-over switch is in an on state or not;
and if the change-over switch is in an on state and the sliding distance and the sliding direction of the sliding touch operation meet preset display conditions, displaying the thumbnail of the application running in the background of the mobile terminal on a display screen.
In this embodiment, a "change-over switch" may be added in advance in a system setting list of the mobile terminal, and when the switch is in an on state, a sliding touch operation generated in the touch area is detected, and when a sliding distance and a sliding direction of the sliding touch operation satisfy a preset display condition, a thumbnail of an application running in a background of the mobile terminal is displayed on a display screen; when the switch is in a closed state, the sliding touch operation generated in the touch area is detected, and even if the sliding distance and the sliding direction of the sliding touch operation meet preset display conditions, the thumbnail of the background running application of the mobile terminal is not displayed on the display screen.
In the method for switching the application programs, a "switch" may be added in advance in a system setting list of the mobile terminal, and is used to control the application program switching function corresponding to the present invention, and when the "switch" is turned off by a user, the application program switching function corresponding to the present invention may be turned off, so that the mobile terminal can meet different user groups, and user experience is improved.
Further, based on the first, second, fifth, and sixth embodiments of the method for switching an application program of the present invention, in a seventh embodiment of the method for switching an application program of the present invention, the method for switching an application program further includes:
after the sliding touch operation generated in the touch area is detected, judging whether the mobile terminal is in a horizontal screen state currently by using a gyroscope preset in the mobile terminal;
and if the mobile terminal is in a horizontal screen state currently and the sliding distance and the sliding direction of the sliding touch operation meet preset display conditions, transversely displaying the thumbnail of the background running application of the mobile terminal on the display screen.
In this embodiment, it is considered that when a user watches a video or plays a game using a mobile terminal, the mobile terminal is automatically switched to a landscape screen display mode, at this time, the user wants to switch an application, a sliding touch operation is performed in the touch area, a thumbnail of a background running application of the mobile terminal is opened, and at this time, if a gyroscope preset in the mobile terminal detects that the mobile terminal is currently in a landscape screen state, the thumbnail of the background running application of the mobile terminal is displayed on a display screen in a landscape mode when a sliding distance and a sliding direction of the sliding touch operation meet preset display conditions.
For better understanding of the present invention, referring to fig. 7, fig. 7 is a scene diagram illustrating a thumbnail of an application running in the background of a mobile terminal in a horizontal direction of a display screen in the present invention.
Further, for better understanding of the present invention, referring to fig. 8, fig. 8 is a flowchart illustrating a seventh embodiment of an application program switching method according to the present invention.
In fig. 8, when the mobile terminal is in the unlocked and bright screen state, it is determined whether a sliding touch operation is generated in a preset touch area of a display screen of the mobile terminal, and if not, the foreground application is maintained;
if so, judging whether the sliding touch operation meets a preset display condition, and if so, judging whether the mobile terminal is in a horizontal screen state currently;
when the mobile terminal is in a horizontal screen state, judging whether the sliding touch operation continues to slide or not; when the sliding touch operation continues to slide upwards, the background application thumbnail is circularly and slidingly displayed upwards; when the sliding touch operation continues to slide downwards, the background application thumbnail is circularly and downwards slid and displayed;
when the mobile terminal is in a vertical screen state, judging whether the sliding touch operation continues to slide or not; when the sliding touch operation continues to slide leftwards, the background application thumbnail is circularly and slidingly displayed leftwards; when the sliding touch operation continues to slide rightwards, the background application thumbnail is circularly and rightwards slid and displayed;
and judging whether the touch operation is contacted, and if the touch operation is released, switching the background running application corresponding to the currently displayed thumbnail on the display screen to the foreground running application.
According to the switching method of the application program, after the sliding touch operation generated in the touch area is detected, whether the mobile terminal is in the horizontal screen state or the vertical screen state at present is judged by using a gyroscope preset by the mobile terminal, and if the mobile terminal is in the horizontal screen state at present and the sliding distance and the sliding direction of the sliding touch operation meet preset display conditions, the thumbnail of the application running in the background of the mobile terminal is displayed transversely on the display screen, so that a user can check the thumbnail of the application running in the background of the mobile terminal conveniently, and the user experience is improved.
Further, the present invention also provides a mobile terminal, comprising: a memory, a processor, and an application switching program stored on the memory and executable on the processor, the application switching program when executed by the processor implementing the steps of:
when the mobile terminal is in an unlocking and screen-lighting state, detecting sliding touch operation generated in a preset touch area of a display screen of the mobile terminal;
when the sliding distance and the sliding direction of the sliding touch operation meet preset display conditions, displaying a thumbnail of an application running in a background of the mobile terminal on a display screen;
if the sliding touch operation is detected to continue sliding along the sliding direction, controlling the thumbnail to be circularly displayed on a display screen according to the sliding touch operation;
and when the sliding touch operation is detected to be released, switching the background running application corresponding to the currently displayed thumbnail on the display screen to the foreground running application.
For better understanding of the present invention, referring to fig. 9, fig. 9 is a schematic structural diagram of a software operating environment related to the mobile terminal of the present invention, in this embodiment, the mobile terminal may include: a processor 110, e.g., a CPU, a network interface 1004, a user interface 1003, memory 109, a communication bus 1002. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include the interface unit 108 and the display unit 106 shown in fig. 1 described above; the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface); the memory 109 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory); the memory 109 may alternatively be a storage device separate from the processor 110 described above.
Those skilled in the art will appreciate that the configuration shown in fig. 9 does not constitute a limitation of the mobile terminal described above, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 9, the memory 109, which is a storage medium, may include an operating system, a network communication module, a user interface module, and an application switching program.
As shown in fig. 9, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and processor 110 may be configured to invoke the application switching program stored in memory 109 and perform the corresponding operations.
The embodiment corresponding to the mobile terminal is basically the same as each embodiment corresponding to the switching method of the application program, and therefore, the detailed description is omitted here.
Further, the present invention provides a storage medium storing an application switching program, which when executed by at least one processor, implements the steps of:
when the mobile terminal is in an unlocking and screen-lighting state, detecting sliding touch operation generated in a preset touch area of a display screen of the mobile terminal;
when the sliding distance and the sliding direction of the sliding touch operation meet preset display conditions, displaying a thumbnail of an application running in a background of the mobile terminal on a display screen;
if the sliding touch operation is detected to continue sliding along the sliding direction, controlling the thumbnail to be circularly displayed on a display screen according to the sliding touch operation;
and when the sliding touch operation is detected to be released, switching the background running application corresponding to the currently displayed thumbnail on the display screen to the foreground running application.
The embodiment corresponding to the storage medium is basically the same as the embodiments corresponding to the switching method of the application program, and therefore, the description thereof is omitted.
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.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 invention 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 according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.