CN107992360B - Application switching processing method, mobile terminal and readable storage medium - Google Patents

Application switching processing method, mobile terminal and readable storage medium Download PDF

Info

Publication number
CN107992360B
CN107992360B CN201711235862.2A CN201711235862A CN107992360B CN 107992360 B CN107992360 B CN 107992360B CN 201711235862 A CN201711235862 A CN 201711235862A CN 107992360 B CN107992360 B CN 107992360B
Authority
CN
China
Prior art keywords
application
display screen
switching
application interface
switched
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711235862.2A
Other languages
Chinese (zh)
Other versions
CN107992360A (en
Inventor
卢亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711235862.2A priority Critical patent/CN107992360B/en
Publication of CN107992360A publication Critical patent/CN107992360A/en
Application granted granted Critical
Publication of CN107992360B publication Critical patent/CN107992360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The invention discloses an application switching processing method, which is applied to a mobile terminal provided with two display screens and is characterized by comprising the following steps: 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. The invention also discloses a mobile terminal and a computer readable storage medium. The invention can effectively avoid data transmission interruption caused by application switching, further interrupt program operation, and further improve the use experience of users.

Description

Application switching processing method, mobile terminal and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an application handover processing method, a mobile terminal, and a readable storage medium.
Background
With the continuous development of network information technology and the increasing popularization of mobile terminals, a plurality of different types of application software, such as mails, videos, social contacts, games and the like, are installed on the existing terminals, so that more working modes and life experiences are brought to users.
In the process of using the mobile terminal, a user often receives an incoming call or video chat and other emergencies, so that the user is forced to interrupt currently processed important transactions, and great interference is caused to the user. On the other hand, when an emergency occurs or the user considers processing other transactions, the current application needs to be switched to the background operation, which is easy to cause data transmission interruption, and further, the application switching processing method in the prior art is not humanized enough, and the user experience is not good.
Disclosure of Invention
The invention mainly aims to provide an application switching processing method, a mobile terminal and a readable storage medium, aiming at solving the problem of how to realize switching application without interrupting data transmission.
In order to achieve the above object, the present invention provides an application switching processing method applied to a mobile terminal having two display screens, the application switching processing method comprising 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.
Preferably, before detecting whether a preset condition is currently met while the first display screen displays the application interface, the application switching processing method further includes:
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.
Preferably, when the first display screen displays the application interface, the 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.
Preferably, when the first display screen displays the application interface, the 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.
Preferably, if so, after the application interface is switched to the second display screen for displaying, the application switching processing method further includes:
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.
Preferably, 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.
Preferably, if so, before the application interface is switched to the second display screen for displaying, the application switching processing method further includes:
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.
Preferably, the application switching processing method further includes:
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.
In addition, in order to achieve the above object, the present invention further provides a mobile terminal, where the mobile terminal includes two display screens, and the mobile terminal further includes: the application switching processing program is stored on the memory and can be run on the processor, and when being executed by the processor, the application switching processing program realizes the steps of the application switching processing method.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, wherein an application switching processing program is stored on the computer-readable storage medium, and when being executed by a processor, the application switching processing program implements the steps of the application switching processing method according to any one of the above items.
In the invention, when the first display screen displays the application interface, whether the current application interface meets the preset condition is detected. 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.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention;
FIG. 2 is a schematic structural diagram of a display screen of a mobile terminal according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of another embodiment of a display screen of a mobile terminal according to the present invention
FIG. 4 is a diagram illustrating a user's operation on a display screen according to an embodiment of the present invention;
fig. 5 is a communication network system architecture diagram according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating an embodiment of an application switching processing method according to the present invention;
fig. 7 is a schematic diagram of a detailed flow of the step S30 in fig. 6.
The implementation, functional features and advantages of the present invention will be described with reference to the accompanying drawings.
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: 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, and power supply 111. Those skilled in the art will appreciate that the mobile terminal 100 depicted in fig. 1 is not intended to be limiting of the mobile terminal 100, and that the mobile 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 the mobile terminal 100 are described in detail below with reference to fig. 1:
the radio 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 the processor 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, the radio 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 the mobile 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 the mobile terminal 100, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the Wi-Fi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile 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, the audio 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.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The mobile terminal 100 also 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.
It should be noted that, in the present embodiment, the mobile 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 the mobile 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.
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 100, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal 100 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 monitoring the mobile terminal 100 as a whole. 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.
In the present invention, the processor 110 is configured to call the application switching handler stored in the memory 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, the processor 110 is further configured to call an application switching handler stored in the memory 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, the processor 110 is further configured to call an application switching processing program stored in the memory 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, the processor 110 is further configured to call an application switching processing program stored in the memory 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, the processor 110 is further configured to call the application switching handler stored in the memory 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.
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 a schematic structural diagram of a display screen of a mobile terminal according to an embodiment of the present invention, where the mobile 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 the mobile 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 the mobile 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 the mobile 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 the processor 110 may call a program stored in the memory 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 an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the mobile 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 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.

Claims (8)

1. An application switching processing method is applied to a mobile terminal with two display screens, and is characterized by comprising the following steps:
on a first display screen, creating a function key corresponding to an application switching instruction for triggering the application switching instruction, wherein the function key comprises: up/down/left/right page turning key, exit key, return key, enter key, screen locking key, mute key;
when the first display screen displays an application interface, detecting whether a preset condition is met currently;
if yes, generating an application switching instruction;
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 switching the application interface to a second display screen to be displayed;
And when the data transmission abnormality does not exist, determining that the application program is switched to the background to normally operate, and switching the application program to the background to operate.
2. The application switching processing method according to claim 1, wherein the detecting whether the preset condition is currently satisfied when the first display screen displays the application interface comprises:
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.
3. The application switching processing method according to claim 1, wherein the detecting whether the preset condition is currently satisfied when the first display screen displays the application interface comprises:
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;
and if the received emergency is monitored, determining that the preset condition is met currently.
4. The application switching processing method according to claim 3, wherein after determining that the application program is switched to a background running interrupt and switching the application interface to a second display screen for display when there is a data transmission abnormality, the application switching processing method further comprises:
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.
5. The application switching processing method according to claim 1, wherein before determining that the application program is switched to a background running interrupt and switching the application interface to a second display screen for display when there is a data transmission abnormality, the application switching processing method further comprises:
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.
6. The application switching processing method according to any one of claims 1 to 5, wherein the application switching processing method further includes:
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.
7. A mobile terminal, the mobile terminal includes two display screens, its characterized in that, the mobile terminal still includes: memory, a processor and an application switching handler stored on the memory and executable on the processor, the application switching handler when executed by the processor implementing the steps of the application switching processing method of any of claims 1 to 6.
8. A computer-readable storage medium, having an application switching handler stored thereon, which when executed by a processor implements the steps of the application switching processing method of any of claims 1 to 6.
CN201711235862.2A 2017-11-30 2017-11-30 Application switching processing method, mobile terminal and readable storage medium Active CN107992360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711235862.2A CN107992360B (en) 2017-11-30 2017-11-30 Application switching processing method, mobile terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711235862.2A CN107992360B (en) 2017-11-30 2017-11-30 Application switching processing method, mobile terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN107992360A CN107992360A (en) 2018-05-04
CN107992360B true CN107992360B (en) 2022-02-22

Family

ID=62034656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711235862.2A Active CN107992360B (en) 2017-11-30 2017-11-30 Application switching processing method, mobile terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN107992360B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108680166A (en) * 2018-05-15 2018-10-19 努比亚技术有限公司 Navigation information is compatible with display methods, terminal and computer readable storage medium
WO2019227281A1 (en) * 2018-05-28 2019-12-05 华为技术有限公司 Capture method and electronic device
CN115390620B (en) * 2018-05-28 2023-07-14 华为技术有限公司 Electronic equipment and operation method thereof
CN108958936B (en) * 2018-06-28 2023-05-05 山东正龙万誉信息科技有限公司 Application program switching method, mobile terminal and computer readable storage medium
CN108933866A (en) * 2018-07-20 2018-12-04 重庆宝力优特科技有限公司 A kind of double screen switching method and Dual-band Handy Phone based on call scene
CN109034808B (en) * 2018-08-15 2022-05-27 广东小天才科技有限公司 Operation method and device of payment application program and terminal equipment
CN109040845A (en) * 2018-08-29 2018-12-18 维沃移动通信有限公司 A kind of video broadcasting method and mobile terminal
CN110928595B (en) * 2018-08-31 2024-02-02 北京搜狗科技发展有限公司 Authority operation method and device
CN109284078B (en) * 2018-10-16 2021-10-29 维沃移动通信有限公司 Control method of double-sided screen and mobile terminal
CN111381836B (en) * 2018-12-29 2024-02-06 三六零科技集团有限公司 Application deployment environment switching method and device
CN113453080A (en) * 2020-03-27 2021-09-28 海信视像科技股份有限公司 Display device and display method of video chat window
WO2021189400A1 (en) * 2020-03-27 2021-09-30 海信视像科技股份有限公司 Display device, and display method of video chat window
CN111666056B (en) * 2020-05-28 2024-01-05 阿波罗智联(北京)科技有限公司 Screen switching display method and device, intelligent rearview mirror and readable storage medium
CN112462925B (en) * 2020-11-30 2024-03-19 努比亚技术有限公司 Method and device for controlling power consumption of small window on-hook application, mobile terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027791A (en) * 2016-06-29 2016-10-12 努比亚技术有限公司 Mobile terminal and application service switching method
CN106325677A (en) * 2016-08-25 2017-01-11 努比亚技术有限公司 Method for presenting a plurality of application program interfaces, and mobile terminal
CN106681584A (en) * 2016-12-09 2017-05-17 深圳市金立通信设备有限公司 Method for optimizing application display and terminal
CN106961526A (en) * 2017-04-13 2017-07-18 宇龙计算机通信科技(深圳)有限公司 The display methods and device of notification message, electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7720672B1 (en) * 1995-12-29 2010-05-18 Wyse Technology Inc. Method and apparatus for display of windowing application programs on a terminal
JP4039658B2 (en) * 2002-02-08 2008-01-30 株式会社東芝 Software management method, communication system, terminal, access point, security countermeasure file download method used in communication system terminal
US20130076654A1 (en) * 2011-09-27 2013-03-28 Imerj LLC Handset states and state diagrams: open, closed transitional and easel

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027791A (en) * 2016-06-29 2016-10-12 努比亚技术有限公司 Mobile terminal and application service switching method
CN106325677A (en) * 2016-08-25 2017-01-11 努比亚技术有限公司 Method for presenting a plurality of application program interfaces, and mobile terminal
CN106681584A (en) * 2016-12-09 2017-05-17 深圳市金立通信设备有限公司 Method for optimizing application display and terminal
CN106961526A (en) * 2017-04-13 2017-07-18 宇龙计算机通信科技(深圳)有限公司 The display methods and device of notification message, electronic equipment

Also Published As

Publication number Publication date
CN107992360A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
CN107992360B (en) Application switching processing method, mobile terminal and readable storage medium
CN107943400B (en) Double-sided screen switching method, mobile terminal and readable storage medium
CN107222613B (en) Display method and terminal
CN108009136B (en) Message correction method, mobile terminal and computer readable storage medium
CN107807767B (en) Communication service processing method, terminal and computer readable storage medium
CN107592416B (en) Voice message transmitting method, terminal and computer readable storage medium
CN108553896B (en) State information display control method, terminal and computer readable storage medium
CN107635070B (en) Message reminding method, terminal and storage medium
CN109040441B (en) Application body-separating display method, mobile terminal and computer readable storage medium
CN107741802B (en) Application starting method, terminal and computer readable storage medium
CN109697008B (en) Content sharing method, terminal and computer readable storage medium
CN108459803B (en) Picture sending method based on double-sided screen, mobile terminal and readable storage medium
CN112637410B (en) Method, terminal and storage medium for displaying message notification
CN108958936B (en) Application program switching method, mobile terminal and computer readable storage medium
CN111427709A (en) Application program body-separating control method and device and computer readable storage medium
CN109408187B (en) Head portrait setting method and device, mobile terminal and readable storage medium
CN109309762B (en) Message processing method, device, mobile terminal and storage medium
CN109117069B (en) Interface operation method, terminal and computer readable storage medium
CN112217713B (en) Method and device for displaying message
CN109873903B (en) Display method, terminal and computer readable storage medium of similar application program
CN110099173B (en) Touch experience mode switching method, terminal and storage medium
CN110083294B (en) Screen capturing method, terminal and computer readable storage medium
CN111931155A (en) Verification code input method, verification code input equipment and storage medium
CN107807876B (en) Split screen display method, mobile terminal and storage medium
CN107678622B (en) Application icon display method, terminal and storage medium

Legal Events

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