CN109165042A - Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application - Google Patents

Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application Download PDF

Info

Publication number
CN109165042A
CN109165042A CN201810813774.4A CN201810813774A CN109165042A CN 109165042 A CN109165042 A CN 109165042A CN 201810813774 A CN201810813774 A CN 201810813774A CN 109165042 A CN109165042 A CN 109165042A
Authority
CN
China
Prior art keywords
application
terminal
target application
target
currently running
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810813774.4A
Other languages
Chinese (zh)
Inventor
黄永红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201810813774.4A priority Critical patent/CN109165042A/en
Publication of CN109165042A publication Critical patent/CN109165042A/en
Pending legal-status Critical Current

Links

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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Abstract

The present invention provides a kind of application interruption restoration methods, terminal and computer readable storage medium, user's subsequent operation is cumbersome in the case where breaking in systems for the application in existing terminal, the problem of poor user experience, by determining the target application being currently running in terminal, when generating system is interrupted, save the currently running scene of target application, and when being again introduced into target application, it is directly entered the scene using the operation deposited, operational objective application, save when to by breaking in systems or before site of deployment, and enter the scene when being again introduced into the application, reduce the troublesome operation of user, the user experience is improved.

Description

Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application
Technical field
The present invention relates to field of terminal technology, interrupt restoration methods, terminal and calculating more specifically to a kind of application Machine readable storage medium storing program for executing.
Background technique
As the technology of terminal develops, the application size and number of applications that can be loaded in terminal are also more and more, although The performance of terminal is become better and better, but the case where also inevitably will appear system break, such as is crashed, power down etc., and When user reenters application, the initial interface of application often can be all returned to, user needs to carry out cumbersome operation again Interface before just can enter, in addition in the case where having, such as user is not logged on the application, will lead to user cannot be introduced into Interface before, thus strong influence user experience.
Summary of the invention
The technical problem to be solved in the present invention is that user is subsequent in the case that the application in existing terminal is broken in systems Cumbersome, poor user experience provides a kind of application interruption restoration methods for the technical problem, and the application, which is interrupted, to restore Method includes:
Determine the target application being currently running in terminal;
By the thread in terminal, the operating status of the target application is monitored;
Generating system interrupt when or before, save the currently running scene of the target application;
When being again introduced into the target application, it is directly entered the scene for the operation that the target application has been deposited, runs institute State target application.
Optionally, the target application being currently running in the determining terminal includes:
Determine the foreground application that terminal is currently running;
Using the foreground application as the target application.
Optionally, the target application being currently running in the determining terminal includes:
Determine the application that the terminal is currently running;
The application of preset condition will be met as target application in the application being currently running.
Optionally, described that the application for meeting preset condition in the application being currently running is used as in target application, institute It includes at least one for stating preset condition:
The application type of the application is preset application type;
The operation duration of the application is more than or equal to preset duration;
The application current time of running is located at the terminal in history run, the history run of the application In period.
Optionally, the currently running scene of the preservation application includes:
Interface and/or user that the target application is currently running are saved to the target application in preset period of time Interior operation data.
Optionally, described to include: when being again introduced into the target application
When the system break is restored, then the target application is directly entered;Or,
After the system break is restored, corresponding target application is entered according to the input of user.
Optionally, the thread by terminal, the operating status for monitoring the target application include:
Start the monitoring thread in terminal;
The operation of the target application is monitored, and the operation data generated in the target application operational process is delayed It deposits.
Optionally, it is also wrapped after running the target application described into the scene for applying the operation deposited It includes:
The operation data for the target application that cleaning is saved when breaking in systems.
Optionally, the present invention also provides a kind of terminal, the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is interrupted for executing one or more program stored in memory with the application for realizing above-mentioned The step of restoration methods.
Optionally, the present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storages There is one or more program, one or more of programs can be executed by one or more processor, above-mentioned to realize Application interrupt restoration methods the step of.
Beneficial effect
The present invention provides a kind of application and interrupts restoration methods, terminal and computer readable storage medium, for existing terminal In application break in systems in the case where user's subsequent operation it is cumbersome, the problem of poor user experience, by determining in terminal just The currently running scene of target application is saved, and be again introduced into target when generating system is interrupted in the target application of operation In application, it is directly entered the scene using the operation deposited, operational objective application, thus when by breaking in systems or before Site of deployment is saved, and enters the scene when being again introduced into the application, reduces the troublesome operation of user, improves user's body It tests.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is that restoration methods basic flow chart is interrupted in the application that first embodiment of the invention provides;
Fig. 4 is to prompt schematic diagram after the interruption that first embodiment of the invention provides restores;
Fig. 5 is to prompt schematic diagram after the terminal that first embodiment of the invention provides is restored;
Fig. 6 is that restoration methods refined flow chart is interrupted in the application that second embodiment of the invention provides;
Fig. 7 is the composition schematic diagram for the terminal that third embodiment of the invention provides.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
First embodiment
Fig. 3 is that restoration methods basic flow chart is interrupted in application provided in this embodiment, which interrupts restoration methods and include:
S301, it determines the target application being currently running in terminal, and passes through the thread in terminal, the fortune of monitoring objective application Row state;
S302, generating system interrupt when or before, save the currently running scene of target application;
S303, when being again introduced into target application, be directly entered the scene for the operation that target application has been deposited, operational objective is answered With.
In S301, since the quantity for the application being currently running in terminal is extremely more, including system application and third-party application, or Person is foreground application and background application etc., and require can be straight after user is broken in systems for not necessarily all applications It taps into last time interface, such as, the systems application such as phone application, short message application in terminal, just without saving current operation The necessity at scene.It determines target application, is exactly which application for needing to carry out Locale Holding filtered out from the application of terminal, To interrupt the process of restoration methods to the application in these application execution various embodiments of the present invention.It is of course also possible to by terminal Interior all applications, which are made no exception, all to be saved, and in other words target application is all applications itself in terminal, this reality It applies example and is not limited thereof.
Optionally, in the present embodiment, determine that the target application being currently running in terminal may include: that determining terminal is current The foreground application being currently running;Using foreground application as target application.Foreground application, exactly answering in the front stage operation of terminal With the interface of the application is on terminal screen and can be immediately seen and be operated by user.Foreground application is that current application is being grasped Application in work, can be directly using foreground application as target application in the present embodiment, and can satisfy the current operation of user needs It asks.
Optionally, determine that the target application being currently running in terminal can also comprise determining that terminal was currently running Using;The application of preset condition will be met in the application being currently running as target application.It in the present embodiment, can be according to pre- If condition, whether the application to confirm in terminal is target application.Optionally, preset condition will be met in the application being currently running Application as in target application, preset condition includes at least one: the application type of application is preset application type; The operation duration of application is more than or equal to preset duration;It is located at terminal in history run using the current time of running, answers In the history run period.Wherein, preset condition can there are many, such as, preset condition may include that target application is Game class application, that is, when the application being currently running in terminal has game class in application, then using the game application as target Using;Either, preset condition can also include that target application is that duration answering more than preset duration is currently running in terminal With, that is, when the application being currently running in terminal is current from starting to, duration has been more than preset duration, and half is small for example When, illustrate that user is longer to the use duration of the application, then can regard the application as target application at this time.In addition to this, in advance If condition can also be other forms, such as apply the memory size occupied, history service condition of application etc. can be according to this A little parameters specifically determine corresponding preset condition.
It optionally, in the present embodiment, can also include: to enable before saving the currently running scene of target application Thread in terminal, the operating status of monitoring objective application.The operating status for the target application that thread is monitored may include this The instruction that interface and user in target application operational process are inputted during using the target application, such as The link of touch-control, content of input etc..
In S302, generating system interrupt when or before, the currently running scene of target application can be saved. Wherein, the operating system in the referred to terminal of system break is interrupted based on some reasons, and process is excessive for example System is powered off without response or not enough power supply, and big system break protection etc. of generating heat, these may each be the original of system break Cause is embodied on terminal interface, is exactly stuck or direct shutdown etc., the system break in the case of these will affect end The operating condition of target application on end, because of system break, target application cannot be continued to run as before interrupting, and It is to be interrupted with system break.So, interrupt when or before, save the currently running scene of target application, in case After subsequent interrupt is restored, user directly can enter the application interface before the interruption according to the scene of preservation, rather than from answering Entered with startup interface by the troublesome operation of user.
The opportunity for saving the currently running scene of target application is divided into when interrupting and occurs the first two of interruption Stage.Wherein, it is saved before generating system interruption, it can be periodically current to target application according to certain time interval The scene of operation is saved, optionally, after saving newest scene, so that it may delete operation data old before It removes, to save system memory size.
Optionally, in the present embodiment, saving using currently running scene may include: to save target application currently just In the operation data of the interface and/or user of operation to target application in preset period of time.Work as specifically, saving target application The scene of preceding operation can also include: the operation data for saving user to target application in preset period of time.Operation data refers to User in preset period of time to information such as the triggering command of application and input contents, including but not limited to changing interface, close The search of key word, interface browsing etc. the corresponding operation data of operation.After saving these data, once system break is extensive It is multiple, so that it may according to the interface that these operation datas and target application are currently running, to enter target application in interruption Preceding interface, and remove the operation of user from, to save the time for user.
Specifically, preset period of time, which can refer to from user, starts the application until this period of system break.
Optionally, in the present embodiment, by the thread in terminal, the operating status of monitoring objective application includes: starting Monitoring thread in terminal;The operation of monitoring objective application, and the operation data generated in target application operational process is carried out Caching.
In S303, when being again introduced into target application, indicate that system break is recovered at this time, then it can be according to institute before The scene of preservation is directly entered the interface before the interruption in the target application, consults and operates for user.
Optionally, in the present embodiment, the concrete condition when being again introduced into target application may include: to work as system break When recovery, then target application is directly entered;Or, entering corresponding target after system break is restored according to the input of user and answering With.In systems when disconnected recovery, terminal can directly initiate the target application before interruption, be not necessarily to the operation of user at this time, use Family in systems break restore after can the interface directly to target application before interruption operate;It can also receive user's Input then needs user to carry out corresponding operation at this time, please refers to Fig. 4 and Fig. 5, Fig. 4 is shown to enter corresponding target application After terminal system is interrupted and restored, user's operation schematic diagram, user can click " confirmation " or " cancellation " to select in pop-up It selects and whether restores the interface of target application before the interruption;When Fig. 5 then shows user's selection " confirmation ", when there are multiple targets Using, then user can choose it is therein at least one or more even target complete application recovery interrupt before interface. When there are multiple target applications, then it can come according to the operating condition of these target applications at the terminal before interruption corresponding Operation, such as the application of front stage operation before the interruption are interrupted and are continued to after restoring in front stage operation;On backstage before interrupting The application of operation continues after then interrupting in running background;Either, it is determined according to the target application respective starting time at end Operating condition on end, for example, starting fast speed in front stage operation, or it is opposite.
It optionally, can also include: that cleaning exists after the scene for the operation deposited into application, operational objective application The operation data of the target application saved when system break.After interrupting recovery, once target application can normally enter, The operation data of the target application saved before so is just not necessarily to continue to retain, at this time then can be directly by the target The operation data of application cleans up, to save system resource;And if there is no select by user after recovery of breaking in systems Into corresponding target application, the operation data of the target application can store the regular hour at this time, or can also be direct Cleaning.
Present embodiments provide a kind of application interruption restoration methods, the feelings broken in systems for the application in existing terminal The problem of user's subsequent operation is cumbersome under condition, poor user experience is being occurred by determining the target application being currently running in terminal When system break, the currently running scene of target application is saved, and when being again introduced into target application, is directly entered to apply and deposit Operation scene, operational objective application, to save when by breaking in systems or before site of deployment, and again into Enter the scene when entering the application, reduces the troublesome operation of user, the user experience is improved.
Second embodiment
Fig. 6 is that restoration methods refined flow chart is interrupted in the application that second embodiment of the invention provides, which, which interrupts, restores Method includes:
S601, the target application being currently running in terminal is determined;
Since the quantity for the application being currently running in terminal is extremely more, including system application and third-party application, or before Platform application and background application etc., and not necessarily all applications require to be directly entered after user is broken in systems Last time interface, such as, the systems application such as phone application, short message application in terminal, just without saving current operation scene It is necessary.It determines target application, is exactly which application for needing to carry out Locale Holding to be filtered out, thus right from the application of terminal The process of restoration methods is interrupted in application in these application execution various embodiments of the present invention.It is of course also possible to by the institute in terminal Have and all saved using making no exception, in other words target application is all applications itself in terminal, and the present embodiment is simultaneously It is not limited thereof.
In the present embodiment, determine that the target application being currently running in terminal may include: that determining terminal is currently being transported Capable foreground application;Using foreground application as target application.Either, the application that terminal is currently running is determined;It will Meet the application of preset condition in the application of operation as target application.Wherein, preset condition can be game class application.
S602, thread, the operating status of monitoring objective application are enabled;
The operating status for the target application that thread is monitored may include the interface in the target application operational process, with And the instruction that user is inputted during using the target application, such as the link of touch-control, content of input etc..
S603, judge whether that generating system is interrupted;If so, going to S604;
Operating system in the referred to terminal of system break is based on some reasons and is interrupted, for example process It crosses multisystem to power off without response or not enough power supply, big system break protection etc. of generating heat, these may each be system break The reason of, it is embodied on terminal interface, is exactly stuck or direct shutdown etc., the system break in the case of these can shadow Ring the operating condition of the target application in terminal.
S604, the storage currently running field data of target application;
Save the currently running scene of target application opportunity, can when interrupting and generation interruption the first two Stage.Wherein, it is saved before generating system interruption, it can be periodically current to target application according to certain time interval The scene of operation is saved, optionally, after saving newest scene, so that it may delete operation data old before It removes, to save system memory size.
Saving using currently running scene may include: the interface for saving target application and being currently running.Specifically, Saving the currently running scene of target application can also include: the operand for saving user to target application in preset period of time According to.The user that operation data refers in preset period of time to information such as the triggering command of application and input contents, including but not It is limited to changing interface, keyword search, interface browsing etc. the corresponding operation data of operation.After saving these data, Once system break is restored, so that it may according to the interface that these operation datas and target application are currently running, to enter mesh The interface of mark application before the interruption, and remove the operation of user from, to save the time for user.
S605, judge to interrupt and whether restore;If so, going to S606;
S606, starting target application, and it is directly entered the scene for the operation that target application has been deposited.
When system break is restored, then target application is directly entered;Or, after system break is restored, according to the defeated of user Enter to enter corresponding target application.In systems when disconnected recovery, terminal can directly initiate the target application before interruption, at this time Without the operation of user, user in systems break restore after can the interface directly to target application before interruption operate; User can also be then needed to carry out corresponding operation at this time in the input for receiving user, to enter corresponding target application.
Present embodiments provide a kind of application interruption restoration methods, the feelings broken in systems for the application in existing terminal The problem of user's subsequent operation is cumbersome under condition, poor user experience is being occurred by determining the target application being currently running in terminal When system break, the currently running scene of target application is saved, and when being again introduced into target application, is directly entered to apply and deposit Operation scene, operational objective application, to save when by breaking in systems or before site of deployment, and again into Enter the scene when entering the application, reduces the troublesome operation of user, the user experience is improved.
3rd embodiment
Fig. 7 is the terminal composition schematic diagram that provides of third embodiment of the invention, terminal include processor 71, memory 72 and Communication bus 73;
Communication bus 73 is for realizing the connection communication between processor 71 and memory 72;
Processor 71 is for executing one or more program stored in memory 72, to realize in the various embodiments described above Application interrupt restoration methods the step of, which is not described herein again.
Fourth embodiment
The present embodiment additionally provides a kind of computer readable storage medium, is stored with one in the computer readable storage medium A or multiple computer programs, which can be executed by one or more processor, with reality The step of restoration methods are interrupted in application in existing the various embodiments described above, which is not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. restoration methods are interrupted in a kind of application, which is characterized in that the application interrupts restoration methods and includes:
Determine the target application being currently running in terminal;
By the thread in terminal, the operating status of the target application is monitored;
Generating system interrupt when or before, save the currently running scene of the target application;
When being again introduced into the target application, it is directly entered the scene for the operation that the target application has been deposited, runs the mesh Mark application.
2. restoration methods are interrupted in application as described in claim 1, which is characterized in that the mesh being currently running in the determining terminal Marking application includes:
Determine the foreground application that terminal is currently running;
Using the foreground application as the target application.
3. restoration methods are interrupted in application as described in claim 1, which is characterized in that the mesh being currently running in the determining terminal Marking application includes:
Determine the application that the terminal is currently running;
The application of preset condition will be met as target application in the application being currently running.
4. application interruption restoration methods as claimed in claim 3, which is characterized in that in the application that described will be currently running Meet the application of preset condition as in target application, the preset condition includes at least one:
The application type of the application is preset application type;
The operation duration of the application is more than or equal to preset duration;
The application current time of running is located at the terminal in history run, the history run period of the application It is interior.
5. restoration methods are interrupted in application according to any one of claims 1-4, which is characterized in that the preservation target application is worked as The scene of preceding operation includes:
Interface and/or user that the target application is currently running are saved to the target application in preset period of time Operation data.
6. restoration methods are interrupted in application according to any one of claims 1-4, which is characterized in that it is described be again introduced into it is described Include: when target application
When the system break is restored, then the target application is directly entered;Or,
After the system break is restored, corresponding target application is entered according to the input of user.
7. restoration methods are interrupted in application according to any one of claims 1-4, which is characterized in that the line by terminal Journey, the operating status for monitoring the target application include:
Start the monitoring thread in terminal;
The operation of the target application is monitored, and the operation data generated in the target application operational process is cached.
8. restoration methods are interrupted in application according to any one of claims 1-4, which is characterized in that enter the target described Using the scene for the operation deposited, after running the target application, further includes:
The operation data for the target application that cleaning is saved when breaking in systems.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of restoration methods, is interrupted in application described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8 Any one of described in application interrupt restoration methods the step of.
CN201810813774.4A 2018-07-23 2018-07-23 Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application Pending CN109165042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810813774.4A CN109165042A (en) 2018-07-23 2018-07-23 Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810813774.4A CN109165042A (en) 2018-07-23 2018-07-23 Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application

Publications (1)

Publication Number Publication Date
CN109165042A true CN109165042A (en) 2019-01-08

Family

ID=64898116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810813774.4A Pending CN109165042A (en) 2018-07-23 2018-07-23 Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application

Country Status (1)

Country Link
CN (1) CN109165042A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058762A (en) * 2019-03-14 2019-07-26 努比亚技术有限公司 A kind of application starting method, terminal and computer readable storage medium
CN110609767A (en) * 2019-09-17 2019-12-24 青岛海信移动通信技术股份有限公司 Data recovery method and device for terminal
CN112333497A (en) * 2020-09-28 2021-02-05 深圳Tcl新技术有限公司 User data display method, device, equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1409209A (en) * 2001-09-24 2003-04-09 深圳市中兴通讯股份有限公司上海第二研究所 Realizing method for multiple task real-time operation system
CN105159834A (en) * 2015-10-24 2015-12-16 北京航空航天大学 Software dynamic testing operating data extracting method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1409209A (en) * 2001-09-24 2003-04-09 深圳市中兴通讯股份有限公司上海第二研究所 Realizing method for multiple task real-time operation system
CN105159834A (en) * 2015-10-24 2015-12-16 北京航空航天大学 Software dynamic testing operating data extracting method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佚名: "Activity保存现场状态", 《HTTPS://WWW.CNBLOGS.COM/MANUSAS/P/5519644.HTML》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058762A (en) * 2019-03-14 2019-07-26 努比亚技术有限公司 A kind of application starting method, terminal and computer readable storage medium
CN110609767A (en) * 2019-09-17 2019-12-24 青岛海信移动通信技术股份有限公司 Data recovery method and device for terminal
CN110609767B (en) * 2019-09-17 2023-10-20 青岛海信移动通信技术有限公司 Data recovery method and device for terminal
CN112333497A (en) * 2020-09-28 2021-02-05 深圳Tcl新技术有限公司 User data display method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN108319512A (en) Display control method, terminal and computer readable storage medium
CN108762876A (en) A kind of input method switching method, mobile terminal and computer storage media
CN109407957A (en) Screen touch control method, terminal and computer readable storage medium
CN109040441A (en) Using display methods of attending to anything else, mobile terminal and computer readable storage medium
CN108737254A (en) Display control method, terminal and the computer storage media of application chat component
CN109933253A (en) Method for controlling application starting, terminal and computer readable storage medium
CN109660973A (en) Bluetooth control method, mobile terminal and storage medium
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN109783223A (en) A kind of memory method for cleaning, terminal and computer readable storage medium
CN109165042A (en) Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application
CN109144383A (en) A kind of application control method, terminal and computer readable storage medium
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN108829302A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN108776600A (en) Application program pretrigger method, mobile terminal and computer readable storage medium
CN110086925A (en) A kind of application processing method and mobile terminal
CN109309762A (en) Message treatment method, device, mobile terminal and storage medium
CN109240881A (en) Processing method, equipment and computer readable storage medium are moved back in a kind of sudden strain of a muscle of application program
CN109640020A (en) A kind of video record control method, terminal and computer readable storage medium
CN108762639A (en) A kind of control method of physical button, mobile terminal and storage medium
CN108259658A (en) Flexible screen terminal and its electricity based reminding method, computer readable storage medium
CN110187934A (en) Application control method, terminal and computer readable storage medium
CN110188249A (en) A kind of global search method, equipment and computer readable storage medium
CN109683796A (en) A kind of interaction control method, equipment and computer readable storage medium
CN109683741A (en) Function triggering method, device and computer readable storage medium
CN109684020A (en) A kind of method for switching theme, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190108