CN109086164A - A kind of application crashes processing method, terminal and computer readable storage medium - Google Patents

A kind of application crashes processing method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109086164A
CN109086164A CN201810713352.XA CN201810713352A CN109086164A CN 109086164 A CN109086164 A CN 109086164A CN 201810713352 A CN201810713352 A CN 201810713352A CN 109086164 A CN109086164 A CN 109086164A
Authority
CN
China
Prior art keywords
application
crashes
target application
processing method
established
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
CN201810713352.XA
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 CN201810713352.XA priority Critical patent/CN109086164A/en
Publication of CN109086164A publication Critical patent/CN109086164A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The present invention provides a kind of application crashes processing method, terminal and computer readable storage medium, the application crashes processing method include: when terminal in the primary application framework that primary storage region is established operational objective in application, the current operating status of detection target application;When target application is in collapse conditions, it is invoked at the standby application frame that slack storage area is established by target application;Standby application frame is attended to anything else for what is established based on primary application framework;Current all data cached of target application is obtained from primary storage region;It is loaded data cached in standby application frame, and target application is restored.Implementation through the invention, when the application for determining that terminal is currently run is in collapse conditions, call the application framework of backup then data cached to load to all before application crashes, it effectively avoids using error and sudden strain of a muscle occurs and moves back, ensure that the stability of the continuity and operation data using operation.

Description

A kind of application crashes processing method, terminal and computer readable storage medium
Technical field
The present invention relates to intelligent terminal technical field, more specifically to a kind of application crashes processing method, terminal and Computer readable storage medium.
Background technique
With the continuous development of terminal technology, the popularity rate of intelligent terminal in social life is higher and higher, and user is in day Often also higher and higher using the frequency of intelligent terminal in life, the intelligent terminal for applying various new technologies also comes into being, and makes Obtaining intelligent terminal becomes the indispensable important tool of people.
To meet the miscellaneous use demand of user, more and more application programs initially enter the daily life of user It is living, and be limited to the technical level of Application developer, test depth and with the reasons such as the suitability of terminal system, very The stable degree of multiple utility program at the terminal is different, and for most of application programs, more or less There are the potential risk factors of some internal errors, and in the prior art, when application program internal errors in the process of running When, be usually expressed as application program be forced to terminate namely it is described move back using dodging, will cause the original operation of user in this way Process is interrupted, operation data is lost, and is frequently dodged to withdraw the membership and caused the biggish irritated mood of user, and user experience is poor.
Summary of the invention
The technical problem to be solved in the present invention is that in the prior art application program in the process of running internal errors and hold Easily occur to dodge to move back, the original operational process of caused user is interrupted, operation data is lost, and for the technical problem, is provided A kind of application crashes processing method, terminal and computer readable storage medium.
In order to solve the above technical problems, the present invention provides a kind of application crashes processing method, the application crashes processing method Include:
When terminal in the primary application framework that primary storage region is established operational objective in application, detection target application Current operating status;
When target application is in collapse conditions, it is invoked at the standby application that slack storage area is established by target application Frame;Standby application frame is attended to anything else for what is established based on primary application framework;
Current all data cached of target application is obtained from primary storage region;
It is loaded data cached in standby application frame, and target application is restored.
Optionally, terminal operational objective application in the primary application framework that primary storage region is established includes:
Terminal runs the target application for starting starting in the primary application framework that primary storage region is established;
Or, terminal runs the target application after completing starting in the primary application framework that primary storage region is established.
Optionally, before the current operating status of detection target application, further includes:
Slack storage area is distributed for target application;
Standby application frame is established in slack storage area according to primary application framework.
Optionally, being invoked at the standby application frame that slack storage area is established by target application includes:
It is directly called from the slack storage area of standby application frame for being pre-established with the target application described standby Use application framework.
Optionally, before being invoked at the standby application frame that slack storage area is established by target application, further includes:
Obtain the application identities of target application;
History crash event information corresponding with application identities is searched according to application identities;
Judge whether history crash event information meets preset application crashes treatment conditions;
If so, being invoked at the standby application frame that slack storage area is established by target application.
Optionally, history crash event information includes: time that target application is collapsed within the default historical time period In the average duration being spaced between any two in number, the multiple collapse that target application is occurred within the default historical time period It is at least one.
Optionally, by it is data cached loaded in standby application frame before, further includes:
The collapse anomalous event of target application is intercepted;
Or, event is moved back in response to sudden strain of a muscle transmitted by collapse anomalous event in shielding backstage.
Optionally, further includes: obtain misoperation report generated when target application is collapsed;
By misoperation report reporting to server.
Further, the present invention also provides a kind of terminal, which includes processor, memory, communication bus;
Communication bus is for realizing the connection communication between processor, memory;
Processor is for executing one or more program stored in memory, to realize above-mentioned application crashes processing The step of method.
Further, the present invention also provides a kind of computer readable storage medium, which is deposited One or more program is contained, one or more program can be executed by one or more processor, above-mentioned to realize The step of application crashes processing method.
Beneficial effect
The present invention provides a kind of application crashes processing method, terminal and computer readable storage medium, for the prior art Middle application program in the process of running internal errors and be easy to happen sudden strain of a muscle and move back, the original operational process of caused user is by The defect that disconnected, operation data is lost, the application crashes processing method include: established when terminal in primary storage region it is primary Operational objective in application framework is in application, detect the current operating status of target application;When target application is in collapse conditions, It is invoked at the standby application frame that slack storage area is established by target application;Standby application frame is to apply frame based on primary What frame was established attends to anything else;Current all data cached of target application is obtained from primary storage region;By data cached spare It is loaded in application framework, and target application is restored.Determining application that terminal currently run in collapse shape When state, then call the application framework of backup come to before application crashes it is all it is data cached load, effectively avoid Occur to dodge using error and move back, ensure that the stability of the continuity and operation data using operation, enhances user and use 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 the basic flow chart for the application crashes processing method that first embodiment of the invention provides;
Fig. 4 is the refined flow chart for the application crashes processing method that second embodiment of the invention provides;
Fig. 5 is the refined flow chart for the application crashes processing method that third embodiment of the invention provides;
Fig. 6 is the structural schematic diagram for the terminal that fourth 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
For solve in the prior art application program in the process of running internal errors and be easy to happen sudden strain of a muscle and move back, caused use The defect that the original operational process in family is interrupted, operation data is lost, present embodiments provides a kind of application crashes processing method, It is illustrated in figure 3 the basic flow chart of application crashes processing method provided in this embodiment, the application crashes processing method is specific The following steps are included:
S301, when terminal in the primary application framework that primary storage region is established operational objective in application, detection mesh Mark applies current operating status.
Terminal is in operation in application, being transported on for the corresponding application framework using the storage region of institute's default allocation Capable namely application framework provides a running environment for application.It should be understood that goal application can be terminal The included application of pre-installation application namely terminal in operating system, such as the included application such as camera, weather, calculator, calendar; It is also possible to the third-party application installed in terminal operating system, such as Tencent's video, Netease's cloud music, king's honor, height The application such as moral map.In addition, it should also be noted that the operating system of terminal may include Android, IOS in the present embodiment Deng not limiting uniquely herein.
Optionally, terminal operational objective application in the primary application framework that primary storage region is established includes: terminal Operation starts the target application of starting in the primary application framework that primary storage region is established;Or, terminal is in primary storage The target application after starting is completed in operation in the primary application framework that region is established.
Specifically, in practical applications, internal operation error, which occurs, for application program usually there will be two kinds of situations, one is In the operation error that application program is occurred during startup, namely applies and run out before entering application interface Mistake, and another kind is then application program after completion starting enters application interface, operates normally business in application program It malfunctions in the process, is based on this, it in both cases can be with the application crashes processing stream of triggering following in the present embodiment Journey.Certainly, in further embodiments, it is also possible to combine above-mentioned two situations, namely after application starts starting, is opening The detection using operating status is carried out in dynamic process and in completing the operational process after starting, so as to application Operating condition carries out whole detection.
S302, when target application is in collapse conditions, be invoked at slack storage area established by target application it is standby Use application framework;Standby application frame is attended to anything else for what is established based on primary application framework.
Specifically, application also known as applies crash, namely application that internal operation error occurs in collapse conditions, cause The factor of application crashes is broadly divided into operating system defect and application program defect, and wherein operating system defect includes system firmware The problem of version is not supported, system hardware configuration malfunctions etc., and application program defect is then application program native codes.Work as application It when collapsing, is presented as and is collapsed using running environment before this, namely the application relied on when application operation before this Frame failure, is based on this, in order to avoid being moved back because of application crashes by system sudden strain of a muscle, is run in the present embodiment with using default Storage region it is different other storage regions foundation have attending to anything else for native applications frame, that is to say to native applications frame into Gone backup, thus relied in current operation the failure of native applications frame when, can be provided for the operation applied spare Running environment.
Optionally, before the current operating status of detection target application, further includes: distribute slack storage for target application Region;Standby application frame is established in slack storage area according to primary application framework.
Specifically, in the present embodiment, in application starting operation, then being answered in first time triggering for what is currently run With distributing a slack storage area, and be used to create standby operation environment, then again based on before this using operation when relied on Native applications frame backs up the native applications frame in the slack storage area distributed.Such as in target application tune When starting operation with the primary application framework in primary region of memory Disk 0, at the same time again in the form attended to anything else another An application framework namely standby application frame are set up at block region of memory Disk 1, using as the standby of primary application framework Part.From the foregoing, it will be observed that can all execute the step of establishing standby application frame when running application every time in the present embodiment.
Optionally, being invoked at the standby application frame that slack storage area is established by target application includes: directly from pre- It first establishes and calls standby application frame in the slack storage area for having the standby application frame of target application.
Standby application frame is established when specifically, applying with each run in a upper embodiment the difference is that originally System is that each apply completes the backup of application framework in preset storage region in advance in embodiment, thus when running certain One in application, then can directly search this using corresponding slack storage area, then directly by corresponding standby application frame Frame takes out.Namely the standby application frame in the present embodiment is that ready-made application framework is attended to anything else, without being intended to every time pair It is backed up.
Optionally, before being invoked at the standby application frame that slack storage area is established by target application, further includes: Obtain the application identities of target application;History crash event information corresponding with application identities is searched according to application identities;Sentence Whether disconnected history crash event information meets preset application crashes treatment conditions;If so, being invoked at slack storage area and being The standby application frame that target application is established.
In practical applications, the practical operation situation of different application at the terminal is different, and certain applications were being run The case where collapsing in journey is more serious, and certain applications may be more slight, is based on this, applies in advance to each in the present embodiment There is a situation where collapsing to be counted in previous operational process, thus the history crash event information as each application, thus In operation in application, can determine its history collapse case according to the mark of application, and application crashes treatment conditions here are then For characterizing the criterion of history collapse case, thus the actual history collapse case and the criterion that each application will be corresponded to It is compared to decide whether the application crashes processing of triggering following, so that the directive property of application crashes processing is stronger.Certainly, exist In other embodiments, subsequent application crashes processing can be carried out when each application is collapsed, thus more comprehensively Property.
Optionally, history crash event information includes: time that target application is collapsed within the default historical time period In the average duration being spaced between any two in number, the multiple collapse that target application is occurred within the default historical time period It is at least one.
Specifically, can be corresponded in terms of different in the present embodiment the collapse case in previous operational process into Row evaluation, one of situation are by secondary using what is collapsed in the process of running in preset period of time before this Number, it is more than default that application crashes treatment conditions, which are then the numbers collapsed within the default historical time period, in this case Collapse frequency threshold value, such as A apply a previous middle of the month have occurred 10 times collapse, B is applied only to be sent out in a previous middle of the month 2 collapses have been given birth to, and preset collapse frequency threshold value is 5 times, so that A application has exceeded the collapse frequency threshold value, it can obtain Know that the collapse case of the application is more serious, will cause more serious influence to the usage experience of user, to be determined For the application crashes process flow for meeting preset application crashes treatment conditions and triggering following, and B application crashes situation is Slightly, and usually this application crashes situation belongs to normal condition, and the necessity for carrying out application crashes processing is lower, Huo Zhewu Method is solved by subsequent application crashes process flow, so as to the application crashes process flow of not triggering following;? In another case, can also be in the multiple collapse occurred in the past, will per collapse twice time interval occurred into Row statistics, then calculates the equispaced duration of all time intervals, flat due to what is collapsed in preset period of time Interval duration is associated with the number collapsed, such as equispaced duration is shorter, then the institute within the time cycle The number collapsed is more, to can also accurately be assessed history collapse case.
It should be understood that can also include the history crash event information of other types in other embodiments, Such as it can be total to be collapsed in the application of operation preset times threshold value in the past by history crash event information setting The duration that number or target application are spaced between the collapse twice occurred recently, does not limit uniquely herein.Separately Outside, it should also be noted that can be combined with a variety of different history crash event information in practical applications to be integrated It considers.
In addition, it should also be noted that being also based on current collapse thing when target application is currently at collapse conditions Part information is made whether the judgement of the application crashes process flow of triggering following, namely obtains the current collapse thing of target application Part information, and judge whether current crash event information meets preset application crashes treatment conditions;If so, being invoked at spare The standby application frame that storage region is established by target application.With history crash event information the difference is that current collapse Event information is then used to characterize collapse case when this application crashes.It further, in practical applications, can also basis Current crash event information is analyzed, and determines whether directly to restart the application based on the analysis results, or That removes that before this data cached can not be applied restarts.
S303, current all data cached of target application is obtained from primary storage region.
Specifically, in the present embodiment after determining that target application is collapsed, calling system package manager, and then inquire The data that target application is cached in operational process before this, namely collapse occur before all operation datas.
Optionally, by it is data cached loaded in standby application frame before, further includes: target application is collapsed Routed anomalous event is intercepted;Or, event is moved back in response to sudden strain of a muscle transmitted by collapse anomalous event in shielding backstage.
Specifically, in practical applications, the collapse anomalous event that system is reported when can be based on application crashes is come to current Using carry out force end namely dodge move back, first the sudden strain of a muscle of system can be moved back before carrying out application recovery in the present embodiment make into Row prevents, wherein a kind of mode is to be intercepted to collapse anomalous event and it is prevented to report to system, and another way is then It is shielded to response made by anomalous event is collapsed based on the received from the background, to make user during application recovery Less than application collapse occurred for perception.
S304, it is loaded data cached in standby application frame, and target application is restored.
Specifically, providing alternative running environment by standby application frame for application, and operational process will be applied before this In it is data cached loaded in the running environment, i.e., user service data is re-loaded in memory, to restore Application page before to collapse, and restore all customer service states, so that the state before the application recovery to collapse, is used Family can continue before application operating.
Optionally, further includes: obtain misoperation report generated when target application is collapsed;By misoperation report Announcement reports to server.
Specifically, in practical applications, misoperation report can also be generated when operation error is collapsed applying, it should Misoperation report may include type of error, the wrong time of operation error for characterizing the error message of operation error And other error messages namely the misoperation are reported as an error log, by the way that misoperation report is sent to Long-range server end enables developer very easily to trace error reason so that server end records it, It avoids continuing to run error and causing application crashes for a long time so as to subsequent reparation application.
It should be noted that the reason of applying when running error may be to cause using itself, it is also possible to by terminal Operating system causes, therefore can also report misoperation parse in the present embodiment, parses to apply and collapse When be itself to be caused or caused by operating system by application, then can be by abnormal fortune after parsing the object for leading to collapse Row report it is purposive be sent to corresponding server, so that corresponding developer arranges to carry out analyzing and adopting reply It applies.Such as a certain model of currently employed A producer terminal operating application B when application crashes occur, occur if analyzing using B Application crashes are not supported by the system configuration of the terminal using caused by B, and not using the aacode defect of B itself, It in this case then can be by the server background of its misoperation report reporting to A producer, for the system development people of A producer Member analyzes it;In another case, and if analyzing using B generation application crashes is to apply the generation of itself by this It, at this time then can be by its misoperation report reporting to the carrier server backstage for applying B, with supply caused by code defect It is analyzed with the application developer of B.
The present invention provides a kind of application crashes processing method, internal in the process of running for application program in the prior art It malfunctions and is easy to happen sudden strain of a muscle and moves back, the defect that the original operational process of caused user is interrupted, operation data is lost, the application Collapse processing method include: when terminal in the primary application framework that primary storage region is established operational objective in application, inspection Survey the current operating status of target application;When target application is in collapse conditions, it is invoked at slack storage area and is answered for target With the standby application frame established;Standby application frame is attended to anything else for what is established based on primary application framework;From primary storage Region obtains current all data cached of target application;It is loaded data cached in standby application frame, and to mesh Mark application is restored.When the application for determining that terminal is currently run is in collapse conditions, then the application framework of backup is called Come to before application crashes it is all it is data cached load, effectively avoid using error and occur dodge move back, ensure that Using the continuity of operation and the stability of operation data, user experience is enhanced.
Second embodiment
In order to better understand the present invention, the present embodiment says application crevasse reason method with a specific example Bright, Fig. 4 is the refined flow chart for the application crashes processing method that second embodiment of the invention provides, the application crashes processing method Include:
S401, when terminal run in the primary application framework that primary storage region is established start starting target application When, slack storage area is distributed for target application, and standby application frame is established in slack storage area according to primary application framework Frame.
In the present embodiment from application default the different other storage regions foundation of run storage region have it is primary Application framework is attended to anything else, and be that is to say and is backed up to native applications frame, so that is relied in current operation primary answers When being failed with frame, spare running environment can be provided for the operation of application.
The current operating status of S402, detection target application, judges whether target application is currently according to operating status Collapse conditions, if so, S403 is executed, if it is not, then executing S402.
It when application is collapsed, is presented as and is collapsed using running environment before this, namely application is run before this When relied on application framework failure, if without collapse processing if will lead to using operation be forced to terminate.
S403, the application identities for obtaining target application, and history corresponding with application identities is searched according to application identities Crash event information.
S404, when history crash event information meets preset application crashes treatment conditions, shielding backstage in response to collapsing Event is moved back in sudden strain of a muscle transmitted by anomalous event of bursting.
History crash event information is answered for characterizing each actual conditions applied and collapsed in previous operational process Then it is used to characterize the criterion of history collapse case with collapse treatment conditions, so that the actual history for corresponding to each application be collapsed Situation of bursting and criterion are compared to decide whether that the application crashes of triggering following are handled, thus the finger of application crashes processing Tropism is stronger.History crash event information may include: the target application hair within the default historical time period in the present embodiment It is spaced between any two in the number of raw collapse, the multiple collapse that target application is occurred within the default historical time period flat At least one of equal duration.And in practical applications, the collapse anomalous event that system is reported when can be based on application crashes come Current application is carried out forcing to terminate, the sudden strain of a muscle event of moving back is shielded in the present embodiment, to make during application recovery Less than application collapse occurred for user's perception.
S405, it is invoked at the standby application frame that slack storage area is established by target application;Standby application frame is Attended to anything else based on what primary application framework was established.
S406, current all data cached of target application is obtained from primary storage region.
S407, it is loaded data cached in standby application frame, and target application is restored.
Alternative running environment, and the caching that will be applied before this in operational process are provided by standby application frame for application Data are loaded in the running environment, i.e., user service data are re-loaded in memory, to be restored to collapse Preceding application page.
S408, obtain target application when collapsing misoperation generated report, and by misoperation report reporting To server.
Misoperation report can also be generated when operation error is collapsed applying, which reports for characterizing The error message for running error, by the way that misoperation report is sent to long-range server end, so that server end is to it It is recorded, developer is enabled very easily to trace error reason, to carry out subsequent reparation.
The present invention provides a kind of application crashes processing method, in terminal operating in application, according to primary application framework standby It is established attending to anything else for primary application framework with storage region, and when the application that terminal is currently run is in collapse conditions, judgement Whether the history crash event information of the application meets preset application crashes treatment conditions, if so, shielding backstage in response to Event is moved back in sudden strain of a muscle transmitted by collapse anomalous event, is then recalled and spare is answered in slack storage area by what target application was established With frame, and by application it is all it is data cached loaded in standby application frame, and target application is restored. It effectively avoids using error and sudden strain of a muscle occurs and moves back, ensure that the stability of the continuity and operation data using operation, enhancing User experience.
3rd embodiment
In order to better understand the present invention, the present embodiment also with another specific example to application crevasse manage method into Row explanation, Fig. 5 are the refined flow chart for the application crashes processing method that third embodiment of the invention provides, application crashes processing Method includes:
S501, it is answered when terminal runs the target completed after starting in the primary application framework that primary storage region is established Used time, judge whether the current operating status of target application is in collapse conditions, if so, S502 is executed, if it is not, then executing S501。
Application program occur internal operation error usually there will be two kinds of situations, one is in application program in start-up course Middle operation error occurred, it is another then be application program complete starting and after entrance application interface, in application program It malfunctions during normal operation business, the application crashes process flow in the present embodiment is then to be applied to application program just Often among the operational process after starting.
S502, the application identities for obtaining target application, and history corresponding with application identities is searched according to application identities Crash event information.
S503, the collapse when history crash event information meets preset application crashes treatment conditions, to target application Anomalous event is intercepted.
S504, spare answer directly is called from the slack storage area of standby application frame for being pre-established with target application Use frame;Standby application frame is attended to anything else for what is established based on primary application framework.
System is that each apply completes the backup of application framework in preset storage region in advance in the present embodiment, from And when running a certain in application, then can directly search this using corresponding slack storage area, it then directly will be corresponding Standby application frame takes out.
S505, current all data cached of target application is obtained from primary storage region.
S506, it is loaded data cached in standby application frame, and target application is restored.
S507, obtain target application when collapsing misoperation generated report, and by misoperation report reporting To server.
The present invention provides a kind of application crashes processing method, answers in terminal operating application, and what terminal was currently run When with being in collapse conditions, judge whether the history crash event information of the application meets preset application crashes treatment conditions, If so, the collapse anomalous event to target application intercepts, then directly answer from being pre-established with the spare of target application With calling standby application frame in the slack storage area of frame, and by all data cached in standby application frame of application It is inside loaded, and target application is restored.It effectively avoids using error and sudden strain of a muscle occurs and moves back, ensure that using operation Continuity and operation data stability, enhance user experience.
Fourth embodiment
A kind of terminal is present embodiments provided, it is shown in Figure 6, including processor 601, memory 602, communication bus 603;
Communication bus 603 is for realizing the connection communication between processor 601, memory 602;
Memory 602 is for storing one or more programs, and processor 601 is for executing one stored in memory 602 A or multiple programs, it is no longer superfluous herein the step of to realize application crashes processing method shown in the various embodiments described above It states.
5th embodiment
The present invention also provides a kind of computer readable storage medium, one is stored in the computer readable storage medium Or multiple programs, which can be executed by one or more processor, to realize the various embodiments described above Shown in application crashes processing method the step of, details are not described herein.
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. a kind of application crashes processing method, which is characterized in that the application crashes processing method includes:
When terminal in the primary application framework that primary storage region is established operational objective in application, detecting the target application Current operating status;
When the target application is in collapse conditions, be invoked at slack storage area established by the target application it is spare Application framework;The standby application frame is attended to anything else for what is established based on the primary application framework;
Current all data cached of the target application is obtained from the primary storage region;
By it is described it is data cached loaded in the standby application frame, and the target application is restored.
2. application crashes processing method as described in claim 1, which is characterized in that the terminal is built in primary storage region Operational objective application includes: in vertical primary application framework
Terminal runs the target application for starting starting in the primary application framework that primary storage region is established;
Or, terminal runs the target application after completing starting in the primary application framework that primary storage region is established.
3. application crashes processing method as described in claim 1, which is characterized in that detecting the current fortune of the target application Before row state, further includes:
Slack storage area is distributed for the target application;
Standby application frame is established in the slack storage area according to the primary application framework.
4. application crashes processing method as described in claim 1, which is characterized in that the slack storage area that is invoked at is institute Stating the standby application frame that target application is established includes:
Described spare answer directly is called from the slack storage area of standby application frame for being pre-established with the target application Use frame.
5. application crashes processing method as described in claim 1, which is characterized in that being invoked at slack storage area be described Before the standby application frame that target application is established, further includes:
Obtain the application identities of the target application;
History crash event information corresponding with the application identities is searched according to the application identities;
Judge whether the history crash event information meets preset application crashes treatment conditions;
If so, being invoked at the standby application frame that slack storage area is established by the target application.
6. application crashes processing method as claimed in claim 5, which is characterized in that the history crash event information includes: The target application is collapsed within the default historical time period number, the target is answered within the default historical time period With at least one of the average duration being spaced between any two in the multiple collapse occurred.
7. such as application crashes processing method described in any one of claims 1 to 6, which is characterized in that by the caching number According to before being loaded in the standby application frame, further includes:
The collapse anomalous event of the target application is intercepted;
Or, event is moved back in response to sudden strain of a muscle transmitted by collapse anomalous event in shielding backstage.
8. such as application crashes processing method described in any one of claims 1 to 6, which is characterized in that further include:
Obtain misoperation report generated when the target application is collapsed;
By the misoperation report reporting to server.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory, communication bus;
The communication bus is for realizing the connection communication between processor, 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 application crashes processing method 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 crashes processing method the step of.
CN201810713352.XA 2018-06-29 2018-06-29 A kind of application crashes processing method, terminal and computer readable storage medium Pending CN109086164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810713352.XA CN109086164A (en) 2018-06-29 2018-06-29 A kind of application crashes processing method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810713352.XA CN109086164A (en) 2018-06-29 2018-06-29 A kind of application crashes processing method, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109086164A true CN109086164A (en) 2018-12-25

Family

ID=64837100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810713352.XA Pending CN109086164A (en) 2018-06-29 2018-06-29 A kind of application crashes processing method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109086164A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995441A (en) * 2019-04-10 2019-07-09 惠州Tcl移动通信有限公司 The method, apparatus and storage medium of communication information processing
CN110045928A (en) * 2019-04-09 2019-07-23 烟台大学 A kind of electronic information mobile terminal
CN110187934A (en) * 2019-05-29 2019-08-30 努比亚技术有限公司 Application control method, terminal and computer readable storage medium
CN110851294A (en) * 2019-10-10 2020-02-28 上海上湖信息技术有限公司 Method and device for remedying program operation breakdown
CN111381943A (en) * 2018-12-29 2020-07-07 深圳Tcl数字技术有限公司 Application program flash-back processing method, intelligent terminal and storage medium
CN112083934A (en) * 2019-06-13 2020-12-15 青岛海信移动通信技术股份有限公司 Terminal and processing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110264953A1 (en) * 2010-04-23 2011-10-27 International Business Machines Corporation Self-Healing Failover Using a Repository and Dependency Management System
CN103678019A (en) * 2012-09-17 2014-03-26 腾讯科技(深圳)有限公司 Method and device for automatically restoring browser
CN105589765A (en) * 2015-12-17 2016-05-18 迈普通信技术股份有限公司 Method for realizing program backup
CN106648971A (en) * 2016-11-11 2017-05-10 努比亚技术有限公司 Crash recovery device, terminal and method
CN107508700A (en) * 2017-08-15 2017-12-22 北京小米移动软件有限公司 Disaster recovery method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110264953A1 (en) * 2010-04-23 2011-10-27 International Business Machines Corporation Self-Healing Failover Using a Repository and Dependency Management System
CN103678019A (en) * 2012-09-17 2014-03-26 腾讯科技(深圳)有限公司 Method and device for automatically restoring browser
CN105589765A (en) * 2015-12-17 2016-05-18 迈普通信技术股份有限公司 Method for realizing program backup
CN106648971A (en) * 2016-11-11 2017-05-10 努比亚技术有限公司 Crash recovery device, terminal and method
CN107508700A (en) * 2017-08-15 2017-12-22 北京小米移动软件有限公司 Disaster recovery method, device, equipment and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381943A (en) * 2018-12-29 2020-07-07 深圳Tcl数字技术有限公司 Application program flash-back processing method, intelligent terminal and storage medium
CN111381943B (en) * 2018-12-29 2024-03-12 深圳Tcl数字技术有限公司 Application program flash-back processing method, intelligent terminal and storage medium
CN110045928A (en) * 2019-04-09 2019-07-23 烟台大学 A kind of electronic information mobile terminal
CN109995441A (en) * 2019-04-10 2019-07-09 惠州Tcl移动通信有限公司 The method, apparatus and storage medium of communication information processing
CN110187934A (en) * 2019-05-29 2019-08-30 努比亚技术有限公司 Application control method, terminal and computer readable storage medium
CN112083934A (en) * 2019-06-13 2020-12-15 青岛海信移动通信技术股份有限公司 Terminal and processing method
CN110851294A (en) * 2019-10-10 2020-02-28 上海上湖信息技术有限公司 Method and device for remedying program operation breakdown

Similar Documents

Publication Publication Date Title
CN109086164A (en) A kind of application crashes processing method, terminal and computer readable storage medium
CN109542689A (en) Applied program processing method, terminal and computer readable storage medium
CN107395858A (en) A kind of reminding method of notification message, terminal and computer-readable recording medium
CN108762876A (en) A kind of input method switching method, mobile terminal and computer storage media
CN110300435A (en) A kind of communication pattern switching method, terminal and computer readable storage medium
CN109783223A (en) A kind of memory method for cleaning, terminal and computer readable storage medium
CN110012515A (en) A kind of call failure processing method, terminal and computer readable storage medium
CN108600516A (en) Collecting method, mobile terminal and computer readable storage medium
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN107729236A (en) Management method, device, mobile terminal and the storage medium of application program
CN109918219A (en) Application crashes repair based reminding method, terminal and computer readable storage medium
CN110187934A (en) Application control method, terminal and computer readable storage medium
CN110175052A (en) A kind of method, apparatus and computer readable storage medium of file opening
CN110209434A (en) A kind of EMS memory management process, device and computer readable storage medium
CN109947519A (en) Hardware-accelerated control method, terminal and computer readable storage medium
CN109739517A (en) Printed circuit board, terminal, firmware burning method and readable storage medium storing program for executing
CN109032648A (en) Update method, mobile terminal and the storage medium of application program
CN109683741A (en) Function triggering method, device and computer readable storage medium
CN109582565A (en) Prevent the method, terminal and computer storage medium of application crashes
CN109740121A (en) A kind of searching method of mobile terminal, mobile terminal and storage medium
CN109032621A (en) A kind of application program installation method, mobile terminal and computer storage medium
CN108845821A (en) Application program update method, terminal and computer readable storage medium
CN108833687A (en) Terminal prot open method, terminal and computer readable storage medium
CN109408184A (en) A kind of icon processing method, mobile terminal and computer storage medium
CN110048900A (en) Blog management method, mobile terminal 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: 20181225