CN109542689A - Applied program processing method, terminal and computer readable storage medium - Google Patents

Applied program processing method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109542689A
CN109542689A CN201811450967.4A CN201811450967A CN109542689A CN 109542689 A CN109542689 A CN 109542689A CN 201811450967 A CN201811450967 A CN 201811450967A CN 109542689 A CN109542689 A CN 109542689A
Authority
CN
China
Prior art keywords
application
destination application
collapse
processing method
case
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
CN201811450967.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 CN201811450967.4A priority Critical patent/CN109542689A/en
Publication of CN109542689A publication Critical patent/CN109542689A/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
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Abstract

The embodiment of the present application discloses a kind of applied program processing method, terminal and computer readable storage medium, this method comprises: monitoring whether the destination application the case where no response or collapse occurs in destination application operation;Record the action trail and content of pages of the destination application;Determine whether the destination application restarts;Page in the case where destination application restarting, according to the action trail and content of pages of the destination application of record, into before destination application collapse.The embodiment of the present application passes through the action trail and content of pages of records application program, in the case where restarting after application crash, without re-operating the page before being directly entered application crash;Solve the problems, such as that user experience caused by the collapse of application program is bad;Improve user experience.

Description

Applied program processing method, terminal and computer readable storage medium
Technical field
The invention relates to field of terminal technology more particularly to a kind of applied program processing methods, terminal and meter Calculation machine readable storage medium storing program for executing.
Background technique
With the development of mobile technology and popularizing for smart phone, (Application is answered the App in major application market With program) quantity also experienced explosive increase, it is estimated that the App quantity in Google Play alreadys exceed 1,700,000, and App Store is also with followed by 1,600,000 quantity, at the same time, global consumer nearly 900,000,000,000 hours using duration, together Than increasing more than 20%.
It, may be due to application program native codes or operating system etc. under partial picture in application program use process Reason causes the collapse of application program, and then can not continue to use;For example, run-time exception, execute mistake (such as memory overflow Deng) and sub thread dish out it is abnormal etc. be likely to caused by application program collapse.
The collapse of application program, so that mobile phone user not only needs to re-operate when restarting application program Interface is used before entering application crash, it is also possible to because application crash loses the weight that application program uses interface Information is wanted, causes user experience not good enough.
Summary of the invention
In view of this, the embodiment of the present application is designed to provide a kind of applied program processing method, terminal and calculating Machine readable storage medium storing program for executing, to solve the problems, such as that the user experience as caused by the collapse of application program is bad.
It is as follows that the embodiment of the present application solves technical solution used by above-mentioned technical problem:
According to the one aspect of the embodiment of the present application, a kind of applied program processing method provided is applied to terminal, described Method includes:
In destination application operation, monitor whether the destination application feelings without response or collapse occurs Condition;
In the case where destination application appearance is without response or collapse, the destination application is recorded Action trail and content of pages;
Determine whether the destination application restarts;
In the case where destination application restarting, according to the behavior of the destination application of record Track and content of pages, the page into before destination application collapse.
In one embodiment, whether the monitoring destination application there are the feelings without response or collapse Condition, comprising:
Judge whether the destination application the case where without response occurs or by CRASH function by ANR function Judge whether the destination application the case where collapse occurs.
In one embodiment, whether the monitoring destination application there are the feelings without response or collapse Condition, later further include:
In the case where destination application appearance is without response or collapse, obtains the destination application and occur Abnormal operating condition information without response or when collapse;
By the abnormal operating condition information reporting to server.
In one embodiment, it is described by the abnormal operating condition information reporting to server, before further include:
The abnormal operating condition information is parsed;
It is described to include: to server by the abnormal operating condition information reporting
By the abnormal operating condition information reporting after parsing to server.
In one embodiment, whether the determination destination application restarts, comprising:
Determine whether the destination application restarts within a preset time.
In one embodiment, whether the determination destination application restarts, later further include:
In the case where the destination application does not restart, the destination application of deletion record Action trail and content of pages.
In one embodiment, the destination application is the application program of any pre-installation in terminal operating system Or any third party application.
In one embodiment, the action trail of the destination application of record and content of pages include with It is one of lower or a variety of:
The life cycle node of the page of application program, the corresponding mark of the page of application program and identification number, using journey The event information of event handler processing of the thread of sequence, the operation event information of the page of application program, application program line The service lifecycle information of the thread of the striding course communication and application program of the broadcast event information, application program of journey.
According to the other side of the embodiment of the present application, a kind of terminal provided, the terminal includes memory, processor And it is stored in the application handler that can be run on the memory and on the processor, the application program processing Program realizes the step of above-mentioned applied program processing method when being executed by the processor.
According to the other side of the embodiment of the present application, a kind of computer readable storage medium provided, the computer It is stored with application handler on readable storage medium storing program for executing, is realized when the application handler is executed by processor The step of applied program processing method stated.
The applied program processing method, terminal and computer readable storage medium of the embodiment of the present application are answered by record With the action trail and content of pages of program, in the case where restarting after application crash, without re-operating The page before application crash can be directly entered;Solve that user experience caused by the collapse of application program is bad to ask Topic;Improve user experience.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for realizing the mobile terminal of each embodiment of the application;
Fig. 2 is a kind of communications network system architecture diagram provided by the embodiments of the present application;
Fig. 3 is the applied program processing method flow diagram of the application first embodiment;
Fig. 4 be the application first embodiment applied program processing method in report the flow diagram of server;
Fig. 5 is the terminal structure schematic diagram of the application second embodiment.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
In order to be clearer and more clear technical problems to be solved in this application, technical solution and beneficial effect, tie below Drawings and examples are closed, the application is further elaborated.It should be appreciated that specific embodiment described herein is only To explain the application, it is not used to limit the application.
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, PDA (Personal Digital Assistant, personal digital assistant), PMP (Portable Media Player, portable media player), navigation device, wearable device, Intelligent bracelet, pedometer The fixed terminals such as equal mobile terminals, 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
As shown in figure 3, the application first embodiment provides a kind of applied program processing method, it is applied to terminal, the side Method includes:
Step S31: in destination application operation, monitor whether the destination application occurs without responding or collapse Routed situation.
In the present embodiment, the destination application can for terminal operating system (such as: Android operation system, The iOS operating system of Apple Inc.) in any pre-installation application program, such as the included camera of terminal, music player, view The application programs such as frequency player, calendar, weather.The destination application may be any third party application, such as The application programs such as wechat, Baidu's glutinous rice, Baidu map, KuGoo music, Netease's cloud music, mobile phone Taobao.
In the present embodiment, the operating status of destination application includes destination application normal operation, target application Program operation exception etc..Wherein, the reason of destination application operation exception causes may be that destination application nothing occurs Respond (ANR, Application Not Responding) or collapse (CRASH).
In the present embodiment, whether the monitoring destination application there is the case where no response or collapse, wraps It includes:
Judge whether the destination application the case where without response occurs or by CRASH function by ANR function Judge whether the destination application the case where collapse occurs.
In the present embodiment, it can determine whether application program occurs no response by ANR function or CRASH function Or the case where collapse.ANR function or CRASH function can refer to the prior art, and therefore not to repeat here.
As illustratively, in Android operation system, the response of application program be by ActivityManager and WindowManager service system service watch, when detecting any one of following three situation, Android can needle To using program display ANR dialog box:
1) incoming events such as, InputDispatching, key or touch are in specific time (5 seconds) without response;2), BroadcastTimeout, BroadcastReceiver can not handle completion in specific time (10 seconds);3), ServiceTimeout, Service can not handle completion within the specific time (20 seconds).
Therefore, when receiving ANR application program without response prompt, it may be determined that application program occurs without response;Similarly, When receiving the prompt of CRASH application crash, it may be determined that application program is collapsed.
It please refers to shown in Fig. 4, in one embodiment, whether the monitoring destination application no response occurs Or the case where collapse, later further include:
In the case where destination application appearance is without response or collapse, obtains the destination application and occur Abnormal operating condition information without response or when collapse;
By the abnormal operating condition information reporting to server.
In this embodiment, it is described by the abnormal operating condition information reporting to server, before further include:
The abnormal operating condition information is parsed;
It is described to include: to server by the abnormal operating condition information reporting
By the abnormal operating condition information reporting after parsing to server.
As illustratively, can occur solving without the abnormal operating condition information of response or collapse to destination application Analysis, parse the packet name of destination application, and can be parsed out generation without response or collapse be as caused by system or Caused by destination application itself.
If occurring is that destination application is occurred without sound by server as caused by system without response or collapse Abnormal operating condition information when should or collapse is sent to system manufacturer, to repair destination application;If occurring without sound Should perhaps collapse be by then by server destination application being occurred without response caused by destination application itself or Abnormal operating condition information when collapse is sent to destination application manufacturer, to repair destination application.
Step S32: in the case where destination application appearance is without response or collapse, the target application is recorded The action trail and content of pages of program.
In the present embodiment, determining that the destination application occurs without response or in the case where collapse, Ji Keji Record the action trail and content of pages of the destination application, including but not limited to one or more of:
1), the life cycle node of the page of application program;
By taking the corresponding life cycle node of the page in Android operation system as an example, it is temporary to enter interface-from creation-starting- It stop-restarting-and each stage (node) such as stop-destroying to be circulated in main thread, is likely to occur that ANR etc. is abnormal to be asked Topic.Determining that the destination application occurs without response or in the case where collapse, can records application program in entire mistake Life cycle node in journey.
Specifically, Activity is one of the component of Android application, is used for displayed page window.Android application the page with Activity is carrier realization.The life cycle of Activity be divided into onCreate, onStart, onResume, onPause, OnStop and onDestroy specifically when Activity is called for the first time, carries out onCreate method.When Activity can call onStart method when being in visible state, when Activity available user focus OnResume method can be called, when Activity does not have destroyed and while being newly called that can call onRestart method, when Activity can call onPause method when being blocked, and can call when Activity is in invisible mode OnStop method can call onDestory method when Activity is destroyed.The displaying and disappearance of one page require through These stages are spent, by the life cycle for monitoring Activity, so that it may monitor opening, closing and the user of a page The residence time on the page.
2), the corresponding mark of the page of application program and identification number;
Determining that the destination application occurs can record user's operation application journey without response or in the case where collapse The functional module and UI of sequence.Such as: there is functional module unique identification TAG, UI to have unique mark ID, can record the page pair The TAG and ID answered.
3), the event information of the event handler processing of the thread of application program;
Since the generation of many ANR is all each Handler since Handler case distribution time-out causes in main thread Event may be provided with specific ID.Determining that remembering without response or in the case where collapse occurs in the destination application Record the event information of the event handler Handler processing of main thread and other non-main threads.
4), the operation event information of the page of application program;
Such as it can recorde the key or touch-screen event information of the application program main thread.User's operation button clicks page The operation information in face, such as clicking operation back key up event or slide the page list event information.
5), the broadcast event information of the thread of application program;
Since specific business module or functional module source can be found by specific broadcast event information, to determine It is that the broadcast message which business issues causes obstruction so as to cause ANR generation.Therefore the target application journey is being determined In the case that sequence occurs without response or collapse, broadcast event Information ID or the broadcast of the thread of application program can record Action relevant information,
6), the striding course of application program communicates (Inter-Process Communication, IPC);
Although it is mainly the task or event anomalies due to handling in main thread that abnormal situation, which occurs, in application program operation Task time-out that is caused, such as handling in main thread, causes main thread to receive obstruction, thing to be distributed in subsequent main thread Part, broadcast need not being distributed or complete in time in the operation that main thread carries out, to cause the abnormal problems such as ANR.But Caused by also some situations are the communication between striding course, therefore determining that the destination application occurs without responding or collapse In the case where bursting, the ipc message of application program can record.
7), service (service) life cycle information of the thread of application program;
Determining that the destination application occurs can record the thread of application program without response or in the case where collapse In the information such as specific service title.
Step S33: determine whether the destination application restarts.
In the present embodiment, the start-up course of application program can refer to the prior art, and therefore not to repeat here.
In one embodiment, whether the determination destination application restarts, comprising:
Determine whether the destination application restarts within a preset time.
As illustratively, when application program appearance is without phenomena such as response or collapse, lead to the improper pass of application program After closing, if terminal user clicks application icon restarting application program in 10 seconds, that is, it can be performed subsequent Step.
In another embodiment, whether the determination destination application restarts, later further include:
In the case where the destination application does not restart, the destination application of deletion record Action trail and content of pages.
In this embodiment, if destination application does not restart, the destination application of deletion record Action trail and content of pages, avoid record destination application action trail and content of pages occupied terminal Memory causes terminal operating rate to decline.
Step S34: in the case where destination application restarting, according to the destination application of record Action trail and content of pages, into the destination application collapse before the page.
In the present embodiment, when determining that the destination application occurs without response or the case where collapse, and institute is recorded After the action trail and content of pages of stating destination application, if clicking destination application icon in terminal user It, can be in the action trail and the page according to the destination application of record when restarting destination application Hold, the page into before destination application collapse.
In order to preferably illustrate application program treatment process, below using mobile phone, destination application as wechat application program, It is illustrated:
If mobile phone user is provided with wechat application program in advance and is monitored as destination application.Work as mobile phone user Using wechat application program and enter circle of friends use interface when, there is no response suddenly in wechat application program, at this time after Page and its related event, thread when the wechat application crash of the platform application records mobile phone user etc..
For wechat application program after improper closing, mobile phone user clicked wechat application icon again in 10 seconds Start wechat application program.At this point, information of the background application according to record, when can be directly entered wechat application crash The page (i.e. circle of friends use interface).
The applied program processing method of the embodiment of the present application, by the action trail and the page of records application program Hold, in the case where restarting after application crash, without before re-operating and being directly entered application crash The page;Solve the problems, such as that user experience caused by the collapse of application program is bad;Improve user experience.
Second embodiment
As shown in figure 5, the application second embodiment provides a kind of terminal, the terminal includes: memory 41, processor 42 And it is stored in the application handler that can be run on the memory 41 and on the processor 42, the application program When processing routine is executed by the processor 42, the step of for realizing applied program processing method as described below:
In destination application operation, monitor whether the destination application feelings without response or collapse occurs Condition;
In the case where destination application appearance is without response or collapse, the destination application is recorded Action trail and content of pages;
Determine whether the destination application restarts;
In the case where destination application restarting, according to the behavior of the destination application of record Track and content of pages, the page into before destination application collapse.
When the application handler is executed by the processor 42, it is also used to realize application program as described below The step of processing method:
Whether the monitoring destination application there is the case where no response or collapse, comprising:
Judge whether the destination application the case where without response occurs or by CRASH function by ANR function Judge whether the destination application the case where collapse occurs.
When the application handler is executed by the processor 42, it is also used to realize application program as described below The step of processing method:
Whether the monitoring destination application there is the case where no response or collapse, later further include:
In the case where destination application appearance is without response or collapse, obtains the destination application and occur Abnormal operating condition information without response or when collapse;
By the abnormal operating condition information reporting to server.
When the application handler is executed by the processor 42, it is also used to realize application program as described below The step of processing method:
It is described by the abnormal operating condition information reporting to server, before further include:
The abnormal operating condition information is parsed;
It is described to include: to server by the abnormal operating condition information reporting
By the abnormal operating condition information reporting after parsing to server.
When the application handler is executed by the processor 42, it is also used to realize application program as described below The step of processing method:
Whether the determination destination application restarts, comprising:
Determine whether the destination application restarts within a preset time.
When the application handler is executed by the processor 42, it is also used to realize application program as described below The step of processing method:
In the case where the destination application does not restart, the destination application of deletion record Action trail and content of pages.
When the application handler is executed by the processor 42, it is also used to realize application program as described below The step of processing method:
The destination application is that the application program of any pre-installation or any third party answer in terminal operating system Use program.
When the application handler is executed by the processor 42, it is also used to realize application program as described below The step of processing method:
The action trail and content of pages of the destination application of record include one of following or a variety of:
The life cycle node of the page of application program, the corresponding mark of the page of application program and identification number, using journey The event information of event handler processing of the thread of sequence, the operation event information of the page of application program, application program line The service lifecycle information of the thread of the striding course communication and application program of the broadcast event information, application program of journey.
The terminal of the embodiment of the present application is applying journey by the action trail and content of pages of records application program In the case where being restarted after sequence collapse, without re-operating the page before being directly entered application crash;It solves The bad problem of user experience caused by the collapse of application program;Improve user experience.
3rd embodiment
The application 3rd embodiment provides a kind of computer readable storage medium, deposits on the computer readable storage medium Application handler is contained, for realizing described in first embodiment when the application handler is executed by processor Applied program processing method the step of.
It should be noted that the computer readable storage medium of the present embodiment, belongs to same with the method for first embodiment Design, specific implementation process is shown in embodiment of the method in detail, and the technical characteristic in embodiment of the method is right in the present embodiment It should be applicable in, which is not described herein again.
The computer readable storage medium of the embodiment of the present application passes through the action trail and the page of records application program Content, in the case where restarting after application crash, without before re-operating and being directly entered application crash The page;Solve the problems, such as that user experience caused by the collapse of application program is bad;Improve user experience.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain objects Reason component or all physical assemblies may be implemented as by processor, such as central processing unit, digital signal processor or micro process The software that device executes, is perhaps implemented as hardware or is implemented as integrated circuit, such as specific integrated circuit.Such software Can be distributed on a computer-readable medium, computer-readable medium may include computer storage medium (or non-transitory be situated between Matter) and communication media (or fugitive medium).As known to a person of ordinary skill in the art, term computer storage medium includes In any method or skill for storing information (such as computer readable instructions, data structure, program module or other data) The volatile and non-volatile implemented in art, removable and nonremovable medium.Computer storage medium includes but is not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic Box, tape, disk storage or other magnetic memory apparatus or it can be used for storing desired information and can be visited by computer Any other medium asked.In addition, known to a person of ordinary skill in the art be, communication media generally comprises computer-readable Other numbers in the modulated data signal of instruction, data structure, program module or such as carrier wave or other transmission mechanisms etc According to, and may include any information delivery media.
Above by reference to Detailed description of the invention preferred embodiment of the present application, not thereby limit to the interest field of the application.This Field technical staff does not depart from made any modifications, equivalent replacements, and improvements in scope of the present application and essence, should all be at this Within the interest field of application.

Claims (10)

1. a kind of applied program processing method is applied to terminal, which comprises
In destination application operation, monitor whether the destination application the case where no response or collapse occurs;
In the case where destination application appearance is without response or collapse, the behavior of the destination application is recorded Track and content of pages;
Determine whether the destination application restarts;
In the case where destination application restarting, according to the action trail of the destination application of record And content of pages, the page into before destination application collapse.
2. applied program processing method according to claim 1, which is characterized in that the monitoring destination application Whether no response or collapse the case where is occurred, comprising:
Judge whether the destination application the case where without response occurs or judge by CRASH function by ANR function Whether the destination application there is the case where collapse.
3. applied program processing method according to claim 1, which is characterized in that the monitoring destination application Whether no response or collapse the case where is occurred, later further include:
In the case where destination application appearance is without response or collapse, obtains the destination application and occur without sound Abnormal operating condition information when should or collapse;
By the abnormal operating condition information reporting to server.
4. applied program processing method according to claim 3, which is characterized in that described to believe the abnormal operating condition Breath is reported to server, before further include:
The abnormal operating condition information is parsed;
It is described to include: to server by the abnormal operating condition information reporting
By the abnormal operating condition information reporting after parsing to server.
5. applied program processing method according to claim 1, which is characterized in that the determination destination application Whether restart, comprising:
Determine whether the destination application restarts within a preset time.
6. applied program processing method according to claim 1, which is characterized in that the determination destination application Whether restart, later further include:
In the case where the destination application does not restart, the behavior of the destination application of deletion record Track and content of pages.
7. applied program processing method according to claim 1, which is characterized in that the destination application is terminal behaviour Make the application program of any pre-installation or any third party application in system.
8. applied program processing method according to claim 1, which is characterized in that the destination application of record Action trail and content of pages include one of following or a variety of:
The life cycle node of the page of application program, the corresponding mark of the page of application program and identification number, application program The event information of event handler processing of thread, the operation event information of the page of application program, application program thread The service lifecycle information of the thread of broadcast event information, the striding course communication of application program and application program.
9. a kind of terminal, which is characterized in that the terminal includes memory, processor and is stored on the memory and can be The application handler run on the processor, the application handler are realized when being executed by the processor Such as the step of applied program processing method described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium using journey Sequence processing routine is realized when the application handler is executed by the processor such as any one of claims 1 to 8 institute The step of applied program processing method stated.
CN201811450967.4A 2018-11-30 2018-11-30 Applied program processing method, terminal and computer readable storage medium Pending CN109542689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811450967.4A CN109542689A (en) 2018-11-30 2018-11-30 Applied program processing method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811450967.4A CN109542689A (en) 2018-11-30 2018-11-30 Applied program processing method, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109542689A true CN109542689A (en) 2019-03-29

Family

ID=65851325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811450967.4A Pending CN109542689A (en) 2018-11-30 2018-11-30 Applied program processing method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109542689A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083476A (en) * 2019-04-23 2019-08-02 努比亚技术有限公司 Application control method, terminal and computer readable storage medium
CN110175105A (en) * 2019-05-14 2019-08-27 维沃移动通信有限公司 A kind of collapse reminding method and terminal
CN111008044A (en) * 2019-11-29 2020-04-14 支付宝实验室(新加坡)有限公司 Application program recovery method and system and electronic equipment
CN111198725A (en) * 2019-12-30 2020-05-26 掌阅科技股份有限公司 Application starting processing method, computing equipment and computer storage medium
CN111338705A (en) * 2020-02-13 2020-06-26 贝壳技术有限公司 Data processing method, device and storage medium
CN111522676A (en) * 2020-04-01 2020-08-11 五八有限公司 Application program repairing method and device
CN111552623A (en) * 2020-04-30 2020-08-18 汉海信息技术(上海)有限公司 Method and device for determining page memory consumption
CN111858282A (en) * 2020-07-23 2020-10-30 平安普惠企业管理有限公司 Page track recording method and related equipment
CN112463343A (en) * 2020-12-16 2021-03-09 广州博冠信息科技有限公司 Business process restarting method and device, storage medium and electronic equipment
CN113760338A (en) * 2020-06-05 2021-12-07 北京字跳网络技术有限公司 Method and device for switching application program binary interface ABI and electronic equipment
CN113835912A (en) * 2020-06-24 2021-12-24 北京新氧科技有限公司 Application crash information processing method and device
CN117149476A (en) * 2023-01-13 2023-12-01 荣耀终端有限公司 Fault reporting method and related device
CN117453513A (en) * 2023-12-21 2024-01-26 荣耀终端有限公司 Log acquisition method and related equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468478A (en) * 2015-11-26 2016-04-06 北京京东尚科信息技术有限公司 Recovery method and apparatus for business data after application crash
CN105843741A (en) * 2016-03-24 2016-08-10 腾讯科技(深圳)有限公司 Information processing method and device for application program
CN106598704A (en) * 2016-12-19 2017-04-26 北京小米移动软件有限公司 Application program recovery method and apparatus
CN106648971A (en) * 2016-11-11 2017-05-10 努比亚技术有限公司 Crash recovery device, terminal and method
CN107861854A (en) * 2017-09-27 2018-03-30 努比亚技术有限公司 A kind of terminal local collapse processing method, terminal and computer-readable recording medium
CN108804299A (en) * 2017-04-26 2018-11-13 腾讯科技(深圳)有限公司 Application exception processing method and processing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468478A (en) * 2015-11-26 2016-04-06 北京京东尚科信息技术有限公司 Recovery method and apparatus for business data after application crash
CN105843741A (en) * 2016-03-24 2016-08-10 腾讯科技(深圳)有限公司 Information processing method and device for application program
CN106648971A (en) * 2016-11-11 2017-05-10 努比亚技术有限公司 Crash recovery device, terminal and method
CN106598704A (en) * 2016-12-19 2017-04-26 北京小米移动软件有限公司 Application program recovery method and apparatus
CN108804299A (en) * 2017-04-26 2018-11-13 腾讯科技(深圳)有限公司 Application exception processing method and processing device
CN107861854A (en) * 2017-09-27 2018-03-30 努比亚技术有限公司 A kind of terminal local collapse processing method, terminal and computer-readable recording medium

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083476A (en) * 2019-04-23 2019-08-02 努比亚技术有限公司 Application control method, terminal and computer readable storage medium
CN110175105A (en) * 2019-05-14 2019-08-27 维沃移动通信有限公司 A kind of collapse reminding method and terminal
CN111008044A (en) * 2019-11-29 2020-04-14 支付宝实验室(新加坡)有限公司 Application program recovery method and system and electronic equipment
CN111198725A (en) * 2019-12-30 2020-05-26 掌阅科技股份有限公司 Application starting processing method, computing equipment and computer storage medium
CN111198725B (en) * 2019-12-30 2023-02-28 掌阅科技股份有限公司 Application starting processing method, computing equipment and computer storage medium
CN111338705B (en) * 2020-02-13 2021-03-26 北京房江湖科技有限公司 Data processing method, device and storage medium
CN111338705A (en) * 2020-02-13 2020-06-26 贝壳技术有限公司 Data processing method, device and storage medium
CN111522676B (en) * 2020-04-01 2021-10-01 五八有限公司 Application program repairing method and device
CN111522676A (en) * 2020-04-01 2020-08-11 五八有限公司 Application program repairing method and device
CN111552623A (en) * 2020-04-30 2020-08-18 汉海信息技术(上海)有限公司 Method and device for determining page memory consumption
CN111552623B (en) * 2020-04-30 2023-10-27 汉海信息技术(上海)有限公司 Method and device for determining page memory consumption
CN113760338A (en) * 2020-06-05 2021-12-07 北京字跳网络技术有限公司 Method and device for switching application program binary interface ABI and electronic equipment
CN113835912A (en) * 2020-06-24 2021-12-24 北京新氧科技有限公司 Application crash information processing method and device
CN113835912B (en) * 2020-06-24 2024-02-09 北京新氧科技有限公司 Crash information processing method and device for application program
CN111858282A (en) * 2020-07-23 2020-10-30 平安普惠企业管理有限公司 Page track recording method and related equipment
CN111858282B (en) * 2020-07-23 2022-11-04 平安普惠企业管理有限公司 Page track recording method and related equipment
CN112463343A (en) * 2020-12-16 2021-03-09 广州博冠信息科技有限公司 Business process restarting method and device, storage medium and electronic equipment
CN112463343B (en) * 2020-12-16 2023-09-26 广州博冠信息科技有限公司 Restarting method and device of business process, storage medium and electronic equipment
CN117149476A (en) * 2023-01-13 2023-12-01 荣耀终端有限公司 Fault reporting method and related device
CN117453513A (en) * 2023-12-21 2024-01-26 荣耀终端有限公司 Log acquisition method and related equipment

Similar Documents

Publication Publication Date Title
CN109542689A (en) Applied program processing method, terminal and computer readable storage medium
CN109710135A (en) Split screen display available control method, terminal and computer readable storage medium
CN108551411A (en) Collecting method, mobile terminal and computer readable storage medium
CN108228222A (en) A kind of upgrade method of firmware data, mobile terminal and computer storage media
CN110188016A (en) Detection method, terminal and storage medium of the application program without response obstruction
CN109086164A (en) A kind of application crashes processing method, terminal and computer readable storage medium
CN109040441A (en) Using display methods of attending to anything else, mobile terminal and computer readable storage medium
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN109618049A (en) Terminal screen method for handover control, terminal and computer readable storage medium
CN109002547A (en) Journal file storage method, mobile terminal and computer readable storage medium
CN108052430A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN109714670A (en) Dust-proof network detecting method, mobile terminal and computer readable storage medium
CN108762639A (en) A kind of control method of physical button, mobile terminal and storage medium
CN107748633A (en) Terminal freezes solution method, terminal and the computer-readable recording medium of screen
CN107770449A (en) continuous shooting method, electronic equipment and storage medium
CN110187934A (en) Application control method, terminal and computer readable storage medium
CN109582565A (en) Prevent the method, terminal and computer storage medium of application crashes
CN110083423A (en) Interface jump 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
CN109947519A (en) Hardware-accelerated control method, terminal and computer readable storage medium
CN110046151A (en) A kind of data cleaning method, server and computer readable storage medium
CN109714460A (en) Press key expansion device, terminal, key expansion method and storage medium
CN108833687A (en) Terminal prot open method, terminal and computer readable storage medium
CN110280018A (en) Interface processing method, 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