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, themobile terminal 100 may include: RF (Radio Frequency)unit 101, Wi-Fi module 102,audio output unit 103,sensor 105,display unit 106,user input unit 107,interface unit 108,memory 109,processor 110, andpower supply 111. Those skilled in the art will appreciate that themobile terminal 100 depicted in fig. 1 is not intended to be limiting of themobile terminal 100, and that themobile terminal 100 may include more or less components than those shown, or some components may be combined, or a different arrangement of components.
The various components of themobile terminal 100 are described in detail below with reference to fig. 1:
theradio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to theprocessor 110; in addition, the uplink data is transmitted to the base station. Typically,radio frequency unit 101 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. In addition, theradio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution), etc.
Wi-Fi belongs to a short-distance wireless transmission technology, and themobile terminal 100 can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the Wi-Fi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the Wi-Fi module 102, it is understood that it does not belong to the essential constitution of themobile terminal 100, and may be omitted entirely as needed within the scope not changing the essence of the invention.
Theaudio output unit 103 may convert audio data received by theradio frequency unit 101 or the Wi-Fi module 102 or stored in thememory 109 into an audio signal and output as sound when themobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, theaudio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). Theaudio output unit 103 may include a speaker, a buzzer, and the like.
Themobile terminal 100 also includes at least onesensor 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 thedisplay panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off thedisplay panel 1061 and/or a backlight when themobile 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.
Thedisplay unit 106 is used to display information input by a user or information provided to the user. TheDisplay unit 106 may include aDisplay panel 1061, and theDisplay panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
It should be noted that, in the present embodiment, themobile terminal 100 includes two or more display units, for example, a display unit is respectively disposed on the front side and the back side of themobile terminal 100, or a display unit is respectively disposed on the front side and the back side of the flip, or two display units are disposed on the same side, and so on.
Theuser 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, theuser input unit 107 may include atouch panel 1071 andother input devices 1072. Thetouch 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 thetouch 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. Thetouch 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 theprocessor 110, and can receive and execute commands sent by theprocessor 110. In addition, thetouch 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 thetouch panel 1071, theuser input unit 107 may includeother 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, thetouch panel 1071 may cover thedisplay panel 1061, and when thetouch panel 1071 detects a touch operation thereon or nearby, thetouch panel 1071 transmits the touch operation to theprocessor 110 to determine the type of the touch event, and then theprocessor 110 provides a corresponding visual output on thedisplay panel 1061 according to the type of the touch event. Although thetouch panel 1071 and thedisplay 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, thetouch panel 1071 and thedisplay panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
Theinterface unit 108 serves as an interface through which at least one external device is connected to themobile 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. Theinterface 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 themobile terminal 100 or may be used to transmit data between themobile terminal 100 and external devices.
Thememory 109 may be used to store software programs as well as various data. Thememory 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, thememory 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.
Theprocessor 110 is a control center of themobile terminal 100, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of themobile terminal 100 and processes data by operating or executing software programs and/or modules stored in thememory 109 and calling data stored in thememory 109, thereby monitoring themobile terminal 100 as a whole.Processor 110 may include one or more processing units; preferably, theprocessor 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 theprocessor 110.
In the present invention, theprocessor 110 is configured to call the application switching handler stored in thememory 109, and perform the following operations:
when the first display screen displays an application interface, detecting whether a preset condition is met currently;
if yes, generating an application switching instruction;
judging whether the application program corresponding to the application interface is switched to a background to be interrupted or not based on the application switching instruction;
if so, switching the application interface to a second display screen for displaying;
if not, the application program is switched to the background to run.
Further, before the step of detecting whether the preset condition is currently met when the first display screen displays the application interface, theprocessor 110 is further configured to call an application switching handler stored in thememory 109 to implement the following steps:
and creating a function key corresponding to the application switching instruction on the first display screen so as to be used for triggering the application switching instruction.
Further, when the first display screen displays the application interface, detecting whether a preset condition is currently met includes:
when the first display screen displays an application interface, detecting whether the current first display screen has click operation of the function key;
And if so, determining that the preset condition is currently met.
Further, when the first display screen displays the application interface, detecting whether a preset condition is currently met includes:
monitoring whether an emergency event is received or not when a first display screen displays an application interface, wherein the emergency event at least comprises any one of incoming call information, video chat and voice chat;
if yes, determining that the preset condition is met currently.
Further, after the step of switching the application interface to the second display screen for displaying if the application interface is displayed on the second display screen, theprocessor 110 is further configured to call an application switching processing program stored in thememory 109, so as to implement the following steps:
monitoring whether the emergency event is ended;
and when the emergency is ended, popping up a selection window on the first display screen, so that a user can select whether to switch the application interface displayed by the second display screen back to the first display screen.
Further, the determining, based on the application switching instruction, whether the application program corresponding to the application interface is switched to the background and interrupted or not includes:
acquiring the data transmission quantity of an application program corresponding to the application interface based on the application switching instruction;
Judging whether data transmission abnormity exists after the application program is switched to a background or not based on the data transmission quantity;
when data transmission is abnormal, determining that the application program is switched to a background to be operated and interrupted;
and when the data transmission abnormality does not exist, determining that the application program is switched to a background to normally run.
Further, before the step of switching the application interface to the second display screen for displaying if the application interface is displayed on the second display screen, theprocessor 110 is further configured to call an application switching processing program stored in thememory 109, so as to implement the following steps:
judging whether the second display screen is in an idle state or not;
if so, executing the operation of switching the application interface to a second display screen for displaying;
and if not, popping up prompt information which cannot be switched to the second display screen on the first display screen.
Further, theprocessor 110 is further configured to call the application switching handler stored in thememory 109 to implement the following steps:
monitoring whether an application return instruction is received or not when the second display screen displays the application interface;
and if so, switching the application interface back to the first display screen and displaying based on the application return instruction.
Themobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, thepower supply 111 may be logically connected to theprocessor 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, themobile 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 a schematic structural diagram of a display screen of a mobile terminal according to an embodiment of the present invention, where themobile terminal 100 is a mobile phone and two display screens are respectively disposed on a front side and a back side of the mobile phone, and for facilitating understanding and distinguishing the two display screens, the display screen on the front side is defined as a first display screen or a main screen, and the display screen on the back side is defined as a second display screen or a sub-screen.
Referring to fig. 3, fig. 3 is a schematic structural diagram of another embodiment of a display screen of a mobile terminal according to the present invention, in which themobile terminal 100 is provided with at least two display screens, for example, a bar-type front and back display screen, a flip-type front and back flip display screen, and two folding display screens are respectively provided on two folding display screens, or two display screens are provided on the same side of themobile terminal 100, as shown in fig. 3, taking a mobile phone as an example, two display screens with different sizes are provided on the front of the mobile phone. In order to facilitate understanding and distinguishing between the two display screens, the upper display screen is defined as a first display screen or a main screen, and the lower display screen is defined as a second display screen or a sub-screen. It should be noted that themobile terminal 100 may further include three, four, or even more display screens, and the shape and size of each display screen may be different, and the display screens are specifically set according to actual needs.
Referring to fig. 4, fig. 4 is a schematic diagram of operations of a user on a display screen according to an embodiment of the present invention, where the user performs operations on a displayed application interface on the display screen, such as clicking, long-time pressing, sliding, and the like, and then theprocessor 110 may call a program stored in thememory 109 and execute a corresponding operation, so as to respond to the user and implement human-computer interaction.
Referring to fig. 5, fig. 5 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 anIP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be themobile terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 andother 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 theEPC 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).
TheIP 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 terminal hardware structure and communication network system, the present invention provides various embodiments of the application switching processing method.
The invention provides an application switching processing method.
Referring to fig. 6, fig. 6 is a flowchart illustrating an embodiment of an application switching processing method according to the present invention.
In this embodiment, the application switching processing method includes the following steps:
step S10, when the first display screen displays the application interface, detecting whether the current application interface meets the preset condition;
in this embodiment, the mobile terminal may be configured to install a plurality of different types of application software, and after the corresponding application program is installed, an application icon corresponding to the application program appears on a desktop or in a start menu of the system, so that a user can quickly start and use the application program. There are many kinds of applications, such as for learning, social interaction, gaming, office, audio-video playing, etc. Specifically, even if the application software of the same type is developed by different manufacturers or companies, the corresponding application icons are different. And the user looks up the installed application icon through the display screen and performs opening operation, and at the moment, the display screen displays the application interface of the application software. The application interface refers to an operation interface of an application program, and includes characters, pictures, text boxes, option buttons, menu bars, scroll bars, and the like, and is specifically designed according to developers of application software.
In this embodiment, the User Interface (User Interface) includes an application Interface and a system Interface, and refers to an overall design of human-computer interaction, operation logic, and an attractive Interface of software. A User Interface (UI) is a medium for interaction and information exchange between a system and a User, and it realizes conversion between an internal form of information and a human-acceptable form. The user interface is designed between a user and hardware to interactively communicate with each other, aims to enable the user to conveniently and efficiently operate the hardware to achieve bidirectional interaction and complete work expected to be completed by means of the hardware, is widely defined and comprises a human-computer interaction user interface and a graphical user interface, and the user interface exists in the field of human and mechanical information communication. The good UI design not only enables the software to become individual and tasteful, but also enables the operation of the software to become comfortable, simple and free, and fully embodies the positioning and characteristics of the software.
In this embodiment, the display screen not only displays the interface of the installed application program, but also displays the interface of the installed system. The interface of the system is a desktop including application icons, menu bars, shortcut keys and the like corresponding to the application software. Desktop (English: Desktop) is a computer word. The desktop is the area of the display home screen that is seen after the computer is opened and logged into the system. Just like an actual desktop, it is the plane on which the user works. The terminal firstly installs the system and then installs the application program, namely simply displaying a system interface on a display screen of the terminal firstly, and then randomly clicking an application icon on the system interface to run the corresponding application program, namely correspondingly opening the application interface of the application icon.
In this embodiment, the preset condition refers to a detection condition preset by a manufacturer developer when the terminal leaves a factory, and may be to monitor whether a switching operation exists on the first display screen, or whether the terminal receives an emergency, or whether the current time is preset switching time, and the like, and is specifically set according to actual needs.
Step S20, if yes, an application switching instruction is generated;
in this embodiment, the application switching instruction refers to an operation instruction that can be read and processed by the processor, and specifically is an instruction for switching applications. The application may run in the foreground or in the background. The foreground is the application interface displayed to the user when the application program is running, and the background is to open the application program but hide the application interface, so that the user cannot realize human-computer interaction with the corresponding application program. And when the preset condition is met, generating an application switching instruction for reading and executing the operation of switching the application. Further, when the preset condition is not met, the application switching instruction is not generated, and the operation of switching the application is not executed.
Step S30, judging whether the application program corresponding to the application interface is switched to the background for running interruption or not based on the application switching instruction;
In this embodiment, according to the application switching instruction, an operation of determining whether the application program corresponding to the application interface is switched to the background to run interruption or not is performed. Two situations occur when the application program is switched to the background, wherein one situation is normal operation, and the other situation is interrupted operation. The interrupted operation means that the application program is suspended to temporarily stop the operation of the current program in the operation process, and the original suspended program is returned to continue to operate after the interruption is finished. Specifically, the normal operation is to store network connection with the server or other terminals and realize normal data transmission, and the interrupted operation is to temporarily cut off the network connection with the server or other terminals, thereby causing abnormal data transmission.
In this embodiment, in order to avoid using a large amount of traffic, occupying a large bandwidth, consuming terminal power, having endurance, and other defects, most of the applications may be configured to interrupt the operation of the application when being switched to the background, for example, the content loaded when the applications such as a movie, an education, and a shopping platform are running consumes a large amount of traffic, and then the operation is interrupted when being switched to the background, and further the loaded content is suspended from being received, for example, the content cannot be played continuously and is temporarily stopped. And the content loaded when the application program such as WeChat, mail, weather forecast and the like runs consumes less flow, so that the application program can continue to run normally when being switched to the background, and further the information sent by the server or other terminals can be continuously received without influencing the use of the user even if the application interface is not displayed at present.
Step S40, if yes, the application interface is switched to a second display screen for displaying;
in this embodiment, according to the determination result, when the application program corresponding to the application interface is switched to the background operation and is interrupted, the application interface is switched to the second display screen to be displayed, that is, the application interface is maintained in the foreground operation, but not in the background operation, so that the operation process is not interrupted and is continued, and thus, the normal data transmission is ensured. For example, when a user uses a piece of movie and television software to watch a movie on a first display screen and has an advertisement time of 90 seconds, and the user wants to use the 90 seconds to take account of other transactions, the movie and television software is switched to the background and other software is opened for use, but the movie and television software is interrupted to run and the advertisement is also interrupted to play. At this time, the user needs to finish other transactions and switch the movie software back to the foreground, the advertisement can be continuously played, and the movie content is loaded and played after the advertisement is finished playing, so that the user cannot fully utilize the limited time to process other transactions. For example, when a user plays a game software on the first display screen, and needs to switch to another software to process another transaction, the game software process is forced to be interrupted, and it is impossible to continue upgrading and making a strange game, which causes user annoyance.
And step S50, if not, the application program is switched to the background operation.
In this embodiment, according to the determination result, when the application program corresponding to the application interface is switched to the background operation without interruption, the application program is switched to the background operation, and the corresponding application interface is hidden, so that the user cannot operate on the interface, but the application program can still establish network connection with the server and other terminals. For example, after the mail is switched to the background, the new mail can still be received, and the user can be prompted when the new mail is received, so that the use of the user is not influenced.
In this embodiment, when the first display screen displays the application interface, it is first detected whether a preset condition is currently met. When the conditions are met, an application switching instruction is generated and used for executing and judging whether the application program corresponding to the application interface is switched to the background to be in running interruption or not, and then the application interface is switched to the second display screen to be displayed according to the judgment result, or the application program is switched to the background to run, so that the data transmission interruption caused by application switching is avoided, and the use experience of a user is prevented from being influenced.
Further, in another embodiment of the present invention, before performing step S10 in the above embodiment, the processor further performs to create a function key corresponding to the application switching instruction on the first display screen for triggering the application switching instruction. The function keys, such as an up/down/left/right page turning key, an exit key, a return key, a confirmation key, a screen locking key, a mute key and other basic keys, can also be provided with keys for triggering application switching instructions, generally, the keys are virtual keys and can be displayed on a display screen or hidden on a desktop side rail, a sliding gesture is displayed when needed, and then a user can click the function keys with the application switching instructions.
Further, a function key corresponding to the application switching instruction is created on the first display screen to trigger the application switching instruction, so that when the first display screen displays an application interface, whether the current preset condition is met is detected as whether the current first display screen has a click operation of the function key. When the current first display screen is detected to have the click operation of the function key, the current first display screen is determined to meet the preset condition, and then the operation of generating the application switching instruction can be executed. Specifically, the clicking operation, such as any one or more of single click, double click or long press, is that the user presses the function key with a finger on the display screen by one click or two consecutive clicks or for a period of time. For example, when a current first display screen displays a certain online game, when a user receives a new mail prompt, the user switches game software to a second display screen for display by clicking a function key, and then opens mail software for viewing and replying a new mail, so that work and entertainment are not delayed, and the use experience of the user is improved.
Further, in another embodiment of the present invention, detecting whether the preset condition is currently met may also be monitoring whether an emergency event is received. The emergency event, such as incoming call information, video chat, voice chat, receiving new mail or new information, is specifically set according to the level of importance of the user, and preferably, the emergency event is any one of incoming call information, video chat and voice chat. The incoming call information, i.e. telephone communication, is a communication technology for transmitting language by mutual conversion of sound energy and electric energy, and initiates chatting by dialing a mobile phone number. The voice chat is also a voice-transmission network telephone application, while the video chat not only transmits voice information but also image information, but both the voice chat and the video chat need to download related application software for support. When an emergency is received, it may be determined that a preset condition is currently satisfied, and then an operation of generating an application switching instruction may be performed. For example, a user uses a piece of movie and television software to watch a movie on a first display screen and suddenly prompts incoming call information, the prior art interrupts the playing of the movie and forces the user to select to answer or hang up the incoming call, but the invention switches an application interface of the movie and television software, namely a picture of playing the movie, to a second display screen for displaying, and the first display screen displays the incoming call information.
Further optionally, after the emergency is received and the application interface is switched to the second display screen for displaying, the processor further performs monitoring whether the received emergency is over. When the end of the emergency is monitored, a selection window pops up on the first display screen, specifically, the selection window comprises text information and two option keys of yes and no, the text information is, for example, whether an application interface displayed on the second display screen is switched back to the first display screen, and specific text content is edited according to actual conditions. And when the user selects 'yes', switching the application interface displayed on the second display screen back to the first display screen, namely returning the application interface switched when the emergency is received to the original first display screen for displaying. And when the user selects 'no', maintaining the application interface of which the second display screen is continuously switched.
Referring to fig. 7, fig. 7 is a schematic view of a detailed flow of the step S30 in fig. 6. Based on the foregoing embodiment, in this embodiment, the step S30, based on the application switching instruction, of determining whether the application program corresponding to the application interface is switched to the background and is interrupted includes:
step S31, acquiring the data transmission quantity of the application program corresponding to the application interface based on the application switching instruction;
In this embodiment, data transmission is a communication process in which data is transferred from one place to another. Data transmission systems typically consist of a transmission channel and data circuit terminating equipment (DCE) at both ends of the channel, and in some cases, multiplexing equipment at both ends of the channel. The transmission channel may be a dedicated communication channel or may be provided by a data switching network, a telephone switching network or other types of switching networks. The input and output equipment of the data transmission system is a terminal or a computer. The data transmission amount is a unit of measurement, which refers to the size of data transmission, such as bps (basic Programming support) bits/second, i.e. the number of transmission bits per second. And acquiring the data transmission quantity required by the application program corresponding to the application interface needing to be switched when the application program runs based on the application switching instruction, and further acquiring the data transmission quantity corresponding to the application interface needing to be switched under the current condition because the data transmission quantity is changed due to network environment and the like.
Step S32, based on the data transmission quantity, judging whether the application program has data transmission abnormity after switching to the background;
step S33, when data transmission is abnormal, determining that the application program is switched to a background for interruption;
And step S34, when the data transmission is not abnormal, determining that the application program is switched to the background to normally run.
In this embodiment, according to the acquired data transmission amount, it can be determined whether data transmission abnormality exists when the corresponding application program is switched to the background. Data transmission abnormity, such as suspending data transmission, or receiving a small part of data, etc., which has an excessive deviation from the currently running data transmission quantity, can be classified as data transmission abnormity, and thus it can be determined that the corresponding application program is switched to the background running interruption. Otherwise, the operation is determined to be normal. When the application program is determined to be switched to the background and normally operates, the application program is switched to the background, and the normal use of a user is not influenced.
Further optionally, in another embodiment of the present invention, before the application interface is switched to the second display screen for displaying, the processor further performs the following operations:
1. judging whether the second display screen is in an idle state or not;
2. if so, executing the operation of switching the application interface to the second display screen for displaying;
3. if not, popping up prompt information which cannot be switched to the second display screen on the first display screen.
In this embodiment, the display screen of the mobile terminal has only one application interface, and when the second display screen is in an idle state, that is, when the interfaces of other application programs are not displayed, the application interface displayed on the first display screen is switched to the second display screen for display. When the second display screen displays the interfaces of other application programs, namely in a busy state, a prompt message pops up on the first display screen to inform a user that the application interface cannot be switched to the second display screen currently. If the user manually switches the application, whether the application interface displayed by the current second display screen is ended or not can be selected, and the application to be switched is switched to the second display screen. If the application is switched when an emergency happens, three applications exist at the same time, for example, the first display screen displays a game interface, the second display screen displays a teaching interface, when incoming call information is received, only the game interface displayed by the first display screen can be interrupted, and prompt information pops up.
Further optionally, while the second display screen displays the application interface, monitoring whether an application return instruction is received. And when an application return instruction is received, switching the displayed application interface back to the first display screen for displaying. The application return instruction may be sent by the first display screen or generated by the second display screen. For example, the second display screen creates a function key corresponding to the application return instruction, after the user selects to switch the application interface displayed by the current first display screen to the second display screen through the function key, the user triggers the application return instruction by clicking the function key corresponding to the application return instruction on the second display screen, and then switches the application interface displayed by the second display screen back to the first display screen; after the application interface displayed by the first display screen is switched to the second display screen after the emergency is received, the end of the emergency is monitored, and the user selects a 'yes' option in a selection window popped up by the first display screen, so that an application return instruction is generated and sent to the second display screen, and the application interface displayed by the second display screen is switched back to the first display screen.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium having stored thereon an application switching handler that when executed by a processor performs the steps of:
when the first display screen displays an application interface, detecting whether a preset condition is met currently;
if yes, generating an application switching instruction;
judging whether the application program corresponding to the application interface is switched to a background to be interrupted or not based on the application switching instruction;
if so, switching the application interface to a second display screen for displaying;
if not, the application program is switched to the background to run.
Further, before the step of detecting whether the preset condition is currently met when the first display screen displays the application interface, the application switching handler implements the following steps when executed by the processor:
and creating a function key corresponding to the application switching instruction on the first display screen so as to be used for triggering the application switching instruction.
Further, when the first display screen displays the application interface, detecting whether a preset condition is currently met includes:
when the first display screen displays an application interface, detecting whether the current first display screen has click operation of the function key;
And if so, determining that the preset condition is currently met.
Further, when the first display screen displays the application interface, detecting whether a preset condition is currently met includes:
monitoring whether an emergency event is received or not when a first display screen displays an application interface, wherein the emergency event at least comprises any one of incoming call information, video chat and voice chat;
if yes, determining that the preset condition is met currently.
Further, after the step of switching the application interface to the second display screen for displaying if the application interface is displayed on the second display screen, the application switching processing program implements the following steps when executed by the processor:
monitoring whether the emergency event is ended;
and when the emergency is ended, popping up a selection window on the first display screen, so that a user can select whether to switch the application interface displayed by the second display screen back to the first display screen.
Further, the determining, based on the application switching instruction, whether the application program corresponding to the application interface is switched to the background and interrupted or not includes:
acquiring the data transmission quantity of an application program corresponding to the application interface based on the application switching instruction;
Judging whether data transmission abnormity exists after the application program is switched to a background or not based on the data transmission quantity;
when data transmission is abnormal, determining that the application program is switched to a background to be operated and interrupted;
and when the data transmission abnormality does not exist, determining that the application program is switched to a background to normally run.
Further, if the application interface is displayed on the second display screen, the application switching processing program implements the following steps when executed by the processor, before the step of switching the application interface to the second display screen for display:
judging whether the second display screen is in an idle state or not;
if so, executing the operation of switching the application interface to a second display screen for displaying;
and if not, popping up prompt information which cannot be switched to the second display screen on the first display screen.
Further, the application switching handler, when executed by the processor, implements the steps of:
monitoring whether an application return instruction is received or not when the second display screen displays the application interface;
and if so, switching the application interface back to the first display screen and displaying based on the application return instruction.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the application switching processing method, and is not described herein again.
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 system 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 system. 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 system 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 device (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.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.