CN105005526A - Information reminding method and mobile terminal - Google Patents

Information reminding method and mobile terminal Download PDF

Info

Publication number
CN105005526A
CN105005526A CN201510273805.8A CN201510273805A CN105005526A CN 105005526 A CN105005526 A CN 105005526A CN 201510273805 A CN201510273805 A CN 201510273805A CN 105005526 A CN105005526 A CN 105005526A
Authority
CN
China
Prior art keywords
mobile terminal
response
diagnostic result
diagnostic
prompt information
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
CN201510273805.8A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510273805.8A priority Critical patent/CN105005526A/en
Publication of CN105005526A publication Critical patent/CN105005526A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

An embodiment of the invention discloses an information reminding method and a mobile terminal. The method comprises: when the mobile terminal has no response, diagnosing the mobile terminal according to a pre-set diagnosing rule to obtain a diagnosing result without response; generating operation reminding information which corresponds to the diagnosing rule and is used for solving the no response; and outputting the operation reminding information so as to remind a user of operating the mobile terminal according to the operation reminding information. By adopting the embodiment of the invention, the terminal is diagnosed when the terminal has no response and the operation reminding information is output so as to guide the user to solve the problem of no response, and furthermore, the operation efficiency of the terminal is improved.

Description

A kind of information prompting method and mobile terminal
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of information prompting method and mobile terminal.
Background technology
Along with the development of mobile terminal technology, the application that can run on the mobile terminals such as mobile phone also gets more and more, and the user that is applied as of this various function brings great convenience.But in a lot of situation, some are applied in when mobile phone runs can produce the problem of application without response (Application Not Responding, ANR).Such as, because the developer of different application is often different, the code that some is applied is write lack of standardization, thus the ANR problem caused.Now, because user cannot recognize the reason causing this ANR situation, also just cannot know and take which kind of measure to go to solve this ANR problem, mobile phone operational efficiency is lower.
Summary of the invention
Embodiments provide a kind of information prompting method and mobile terminal, can detecting that terminal is without output function information during response, to instruct user to solve this without response problem, improves terminal operating efficiency.
The embodiment of the invention discloses a kind of information prompting method, comprising:
When mobile terminal is without response, according to the diagnostic rule preset, described mobile terminal is diagnosed, obtain the described diagnostic result without response;
Generate corresponding to described diagnostic result solving the described operation prompt information without responding;
Export described operation prompt information, according to described operation prompt information, described mobile terminal is operated with reminding user.
Optionally, the described diagnostic rule according to presetting is diagnosed described mobile terminal, obtains the described diagnostic result without response, comprising:
Use the first configuration file of information from the central processor CPU comprising described mobile terminal and obtain the described current C PU occupation value without described mobile terminal during response;
Judge whether described current C PU occupation value exceedes default first threshold;
If exceed described first threshold, then generate the diagnostic result of the CPU current overload of described mobile terminal;
For solve described without the operation prompt information that respond corresponding with described diagnostic result of described generation, comprising:
According to the diagnostic result of the CPU current overload of described mobile terminal, generate the operation prompt information for pointing out user to clear up described mobile terminal memory headroom.
Optionally, the described diagnostic rule according to presetting is diagnosed described mobile terminal, obtains the described diagnostic result without response, comprising:
Detect and comprise in the second configuration file of the running stack information of described mobile terminal whether there is the key word identical with the abnormal key word preset;
According to described identical key word, generate the diagnostic result for describing exception corresponding to described identical key word;
For solve described without the operation prompt information that respond corresponding with described diagnostic result of described generation, comprising:
Generate the operation prompt information for solving exception corresponding to described identical key word.
Optionally, described operation prompt information comprises described diagnostic result.
Optionally, diagnose described mobile terminal at the described diagnostic rule according to presetting, before obtaining the described diagnostic result without response, described method also comprises:
Export diagnosis prompting message, described diagnosis prompting message is diagnosed the need of to described mobile terminal for pointing out user;
If receive the confirmation diagnostic instruction that user inputs for described diagnosis prompting message, then diagnosing described mobile terminal according to the diagnostic rule preset described in performing, obtains the step of the described diagnostic result without response.
Correspondingly, the embodiment of the invention also discloses a kind of mobile terminal, comprising:
Diagnostic module, for when mobile terminal is without response, diagnoses described mobile terminal according to the diagnostic rule preset, obtains the described diagnostic result without response;
Information generating module, corresponding to described diagnostic result solving the described operation prompt information without responding for generating;
First output module, for exporting the described operation prompt information that described information generating module generates, operates described mobile terminal according to described operation prompt information with reminding user.
Optionally, described diagnostic module comprises:
Acquiring unit, for when mobile terminal is without response, uses the first configuration file of information from the CPU comprising described mobile terminal and obtains the described current C PU occupation value without described mobile terminal during response;
Judging unit, for judging whether the described current C PU occupation value that described acquiring unit obtains exceedes default first threshold;
First generation unit, in the judged result of described judging unit be described current C PU occupation value exceed described first threshold time, generate the diagnostic result of the CPU current overload of described mobile terminal;
Described information generating module specifically for:
According to the diagnostic result of the CPU current overload of described mobile terminal, generate the operation prompt information for pointing out user to clear up described mobile terminal memory headroom.
Optionally, described diagnostic module comprises:
Detecting unit, for when mobile terminal is without response, detects and comprises in the second configuration file of the running stack information of described mobile terminal whether there is the key word identical with the abnormal key word preset;
Second generation unit, for according to described identical key word, generates the diagnostic result for describing exception corresponding to described identical key word;
Described information generating module specifically for:
Generate the operation prompt information for solving exception corresponding to described identical key word.
Optionally, described operation prompt information comprises described diagnostic result.
Optionally, described mobile terminal also comprises:
Second output module, for exporting diagnosis prompting message, described diagnosis prompting message is diagnosed the need of to described mobile terminal for pointing out user;
Notification module, for when receiving the confirmation diagnostic instruction that user inputs for described diagnosis prompting message, notifying that described diagnostic module is diagnosed described mobile terminal according to the diagnostic rule preset, obtaining the described diagnostic result without response.
Implement the embodiment of the present invention, there is following beneficial effect:
The embodiment of the present invention can occur carrying out without response diagnostics terminal without during response in terminal, thus obtain the diagnostic result of this nothing response, and export the operation prompt information obtained according to this diagnostic result, this is solved without response problem to instruct user, user can be known and take which kind of measure to solve this without response problem, thus improve terminal operating efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of information prompting method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of information prompting method that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of another information prompting method that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of mobile terminal that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the another kind of mobile terminal that the embodiment of the present invention provides;
Fig. 6 is the structural representation of another mobile terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of information prompting method and mobile terminal, detecting that terminal carries out diagnosis and output function information without during response to terminal, to instruct user to solve this without response problem, thus terminal operating efficiency can be improved.Below describe in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of information prompting method that the embodiment of the present invention provides, concrete, and the described method of the embodiment of the present invention can comprise the following steps:
S101: when mobile terminal is without response, according to the diagnostic rule preset, described mobile terminal is diagnosed, obtain the described diagnostic result without response.
It should be noted that, the described method of the embodiment of the present invention can be applied particularly in mobile terminal, this mobile terminal includes but not limited to smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, mobile internet device (Mobile Internet Devices, MID), personal digital assistant (Personal DigitalAssistant, PDA) etc.
In specific embodiment, when there is the situation without response in terminal, according to the diagnostic rule preset, present terminal can be diagnosed, there is the service condition without present terminal CPU during response in such as diagnosis, and/or situation about occurring without terminal operating stack (trace) during response, thus obtain the diagnostic result of this nothing response.Wherein, this diagnostic result can comprise overloaded cpu (i.e. cpu busy), deadlock situation occurs, applies self main thread operating database, to apply self main thread operational network and application and present terminal incompatible etc.
S102: generate corresponding to described diagnostic result solving the described operation prompt information without responding.
In specific embodiment, after obtaining the current diagnostic result without response, the operation prompt information corresponding with this diagnostic result can be generated, solve this without response problem to instruct user.Such as, after diagnosis obtains the diagnostic result of present terminal cpu busy, the operation prompt information in reminding user cleaning tag memory space can be generated, thus solve that this cpu busy causes without response problem.
S103: export described operation prompt information, operates described mobile terminal according to described operation prompt information with reminding user.
Concrete, terminal, when exporting this operation prompt information, can export this operation prompt information especially by a dialog frame, to notify the current solution without response of user, user can operate terminal according to the operation indicating of this output, thus solves this without response problem.Due to current terminal system occur without response time, user informed by the dialog frame that also can eject without response, therefore, directly can increase this operation prompt information in this dialog frame, reminding user process this without response problem.
Further, at the described diagnostic rule according to presetting, described mobile terminal is diagnosed, before obtaining the described diagnostic result without response, this terminal is exportable diagnosis prompting message also, and described diagnosis prompting message is diagnosed the need of to described mobile terminal for pointing out user; If receive the confirmation diagnostic instruction that user inputs for described diagnosis prompting message, then diagnosing described mobile terminal according to the diagnostic rule preset described in performing, obtains the step of the described diagnostic result without response.
Implement the embodiment of the present invention to occur carrying out without response diagnostics terminal without during response in terminal, thus obtain the diagnostic result of this nothing response, and export the operation prompt information obtained according to this diagnostic result, this is solved without response problem to instruct user, user can be known and take which kind of measure to solve this without response problem, thus improve terminal operating efficiency.
Further, refer to Fig. 2, Fig. 2 is the schematic flow sheet of the another kind of information prompting method that the embodiment of the present invention provides, concrete, and the described method of the embodiment of the present invention can comprise the following steps:
S201: when mobile terminal is without response, uses the first configuration file of information from the central processor CPU comprising described mobile terminal and obtains the described current C PU occupation value without described mobile terminal during response.
In an alternate embodiment of the invention, terminal according to the diagnosis without the service condition of present terminal CPU during response, can acquire the operation prompt information that the response of this nothing is corresponding.Concrete, store the first configuration file of the current use information that have recorded this terminal CPU in terminal, when terminal occurs without response problem, current C PU occupation value can be found out from this first configuration file.Wherein, this current CPU occupation value can be in the ad-hoc location in described first configuration file, and when terminal searches this current CPU occupation value, the numerical value that the ad-hoc location from this configuration file terminal can be read out is as this current CPU occupation value.
Further, before this current CPU occupation value of acquisition, terminal can also export a diagnosis prompting message, diagnose the need of to this terminal for reminding user, and the confirmation diagnostic instruction receiving user and input for this diagnosis prompting message, such as receive user when clicking the confirmation diagnostic instruction that confirmation button corresponding to this diagnosis prompting message trigger, can trigger to perform to use the first configuration file of information from the CPU comprising described mobile terminal obtaining the described current C PU occupation value without described mobile terminal during response; Otherwise, be left intact.
S202: judge whether described current C PU occupation value exceedes default first threshold.
S203: the diagnostic result generating the CPU current overload of described mobile terminal.
Concrete, a CPU can be pre-set and take threshold value and first threshold, such as be set to 96%, if current C PU occupation value exceed this 96%, then can generate one and show CPU current overload, the diagnostic result that namely system is busy.
S204: according to the diagnostic result of the CPU current overload of described mobile terminal, generates the operation prompt information for pointing out user to clear up described mobile terminal memory headroom.
S205: export described operation prompt information, operates described mobile terminal according to described operation prompt information with reminding user.
After diagnosis obtains the busy diagnostic result of current system, one can be generated for solving the operation prompt information of the busy problem of this system, such as generate the operation prompt information that a prompting user clears up memory headroom, and export this operation prompt information, thus solve that this cpu busy causes without response problem.Optionally, in described operation prompt information, also can comprise this diagnostic result, reason and the solution of the response of this nothing can be exported simultaneously.
In embodiments of the present invention, can occur to carry out without response diagnostics terminal without during response problem in terminal, acquire current C PU occupation value, and determine CPU current overload when CPU occupation value exceedes predetermined threshold value in this prior, obtain the diagnostic result of this CPU current overload, thus export the operation prompt information that prompting user clears up tag memory space, to instruct user to solve this overloaded cpu problem, make to improve terminal operating efficiency.
Further, be the schematic flow sheet of another information prompting method that the embodiment of the present invention provides please also refer to Fig. 3, Fig. 3, concrete, the described method of the embodiment of the present invention can comprise the following steps:
S301: when mobile terminal is without response, detects and comprise in the second configuration file of the running stack information of described mobile terminal whether there is the key word identical with the abnormal key word preset.
In an alternate embodiment of the invention, terminal also according to the diagnosis to the running stack situation without present terminal during response, can acquire the operation prompt information that the response of this nothing is corresponding.Concrete, terminal also stores the second configuration file of the running stack information that have recorded this terminal.When terminal occurs without response problem, the key word identical with the abnormal key word preset whether can be there is in this second configuration file of detection trigger.Wherein, this abnormal key word can be obtained by Operation system setting, or is obtained by the self-defined setting of relevant research staff, and the embodiment of the present invention does not limit.
Concrete, this abnormal key word can comprise multiple, whether described detection comprises in the second configuration file of the running stack information of described mobile terminal the identical key word of abnormal key word whether existed and preset, and can be specially: detect to comprise in the second configuration file of the running stack information of described mobile terminal and exist and any one identical key word in multiple described abnormal key word; If exist and any one identical key word in multiple described abnormal key word, then determine to there is the key word identical with the abnormal key word preset in described second configuration file.
S302: according to described identical key word, generates the diagnostic result for describing exception corresponding to described identical key word.
S303: generate the operation prompt information for solving exception corresponding to described identical key word.
Specifically, can pre-set and obtain multiple abnormal key word, as "-waiting on ", " ContentResolver.query ", " MessageQueue.nativePollOnce ", " OSNetworkSystem.receiveStream ", " VMRuntime.trackExternalAllocation " etc.If the second configuration file such as tracesFile file comprises "-waiting on " this abnormal key word, then show to create deadlock situation, apply and self go wrong, then can generate one occurs deadlock situation diagnostic result for describing this application, and one can be generated for pointing out the operation prompt information of user's more new opplication; If this tracesFile file comprises " ContentResolver.query " this abnormal key word, then show because application native codes lack of standardization causing applies self main thread operating database, then can generate one for describing the diagnostic result of this application self main thread operating database, and one can be generated for pointing out the operation prompt information of user more new opplication or cleaning tag memory space (cleaning memory headroom can reduce the generation of the situation of this application self main thread operating database equally); If this tracesFile file comprises " MessageQueue.nativePollOnce " this abnormal key word, then show terminal CPU current overload and terminal system busy, then can generate one for describing the busy diagnostic result of this system, and an operation prompt information for pointing out user to clear up tag memory space can be generated; If this tracesFile file comprises " OSNetworkSystem.receiveStream " this abnormal key word, then show because application native codes lack of standardization causing applies self main thread operational network, then can generate one for describing the diagnostic result of this application self main thread operational network, and one can be generated for pointing out user more new opplication or the operation prompt information that by the time uses in the good situation of network; If this tracesFile file comprises " VMRuntime.trackExternalAllocation " this abnormal key word, then show application and terminal incompatible, then can generate the diagnostic result that an application is incompatible with terminal, and generate an operation prompt information for pointing out user to solve this incompatibility problem, such as unload this application or other solve the mode of this incompatibility problem.Optionally, in described operation prompt information, also can comprise this diagnostic result, reason and the solution of the response of this nothing can be exported simultaneously.
S304: export described operation prompt information, operates described mobile terminal according to described operation prompt information with reminding user.
In embodiments of the present invention, can occur to carry out without response diagnostics the running stack information of terminal without during response problem in terminal, namely detect to comprise in the configuration file of this running stack information whether there is default abnormal key word, and generate when existing solve exception corresponding to this abnormal key word operation prompt information, solve to instruct user that this exception causes without response problem, thus improve terminal operating efficiency.
Further alternative, terminal also according to without the service condition of present terminal CPU during response and the diagnosis of running stack situation, can acquire the operation prompt information that the response of this nothing is corresponding.Concrete, when mobile terminal is without response, can uses from the CPU comprising described mobile terminal the first configuration file of information and obtain the described current C PU occupation value without described mobile terminal during response; Judge whether described current C PU occupation value exceedes default first threshold; If exceed described first threshold, then generate the diagnostic result of the CPU current overload of described mobile terminal, and the diagnostic result of CPU current overload according to described mobile terminal, generate the operation prompt information for pointing out user to clear up described mobile terminal memory headroom.Further, if this current CPU occupation value does not exceed described first threshold, then detect and comprise in the second configuration file of the running stack information of described mobile terminal whether there is the key word identical with the abnormal key word preset; According to described identical key word, generate the diagnostic result for describing exception corresponding to described identical key word, and generate the operation prompt information for solving exception corresponding to described identical key word.
For example, terminal such as mobile phone is that some application occur to occur without response without response or some processes without response.For Android system, this mobile phone comprises without response: broadcast is without response and BroadcastTimeout, and service is without response and Service Timeout, button or touch without response and Key DispatchTimeout.And no matter occur any without response, code all can be gone in the method for such a class, and this class is ActivityManagerService.java, and method is appNotResponding, therefrom, diagnosablely obtains following data:
Wherein, this cpuInfo i.e. the first configuration file, and this cpuInfo comprises mobile phone CPU when there is nothing response and uses information; This tracesFile is the second configuration file, and this tracesFile comprises mobile phone running stack information when there is nothing response.
Concrete, the current C PU occupation value without terminal during response can be obtained from cpuInfo i.e. the first configuration file.This cpuInfo comprises the data of following form:
55%TOTAL:44%user+10%kernel+0.8%iowait
Concrete, the data (as being shown as 55% here) reading percent data before TOTAL and target location can be set, using this number percent as current C PU occupation value.If this value read is more than 96%, then show the busier i.e. overloaded cpu of current system, then can generate the diagnostic result of an overloaded cpu, and generate an operation prompt information for pointing out user to clear up memory headroom according to this diagnostic result, with reminding user cleaning internal memory.
If this number percent is less than or equal to 96%, then also can detect in tracesFile i.e. the second configuration file whether there is abnormal key word.This abnormal key word can pre-set and obtain, as "-waiting on ", " ContentResolver.query ", " MessageQueue.nativePollOnce ", " OSNetworkSystem.receiveStream ", " VMRuntime.trackExternalAllocation " etc.And when detecting that this tracesFile exists above-mentioned abnormal key word, generate the diagnostic result for describing exception corresponding to this abnormal key word, and generate the operation prompt information for solving exception corresponding to this abnormal key word according to this diagnostic result, specifically please refer to the associated description of the corresponding embodiment of Fig. 3, repeat no more herein.
Pass through the embodiment of the present invention, can occur to use information to carry out without response diagnostics without during response problem according to terminal CPU in terminal, acquire current C PU occupation value, and determine CPU current overload when CPU occupation value exceedes predetermined threshold value in this prior, obtain the diagnostic result of this CPU current overload, thus export the operation prompt information that prompting user clears up tag memory space, solve this overloaded cpu problem to instruct user.Further, if this current CPU occupation value does not exceed this predetermined threshold value, also can carry out without response diagnostics the running stack information of terminal, namely detect to comprise in the configuration file of this running stack information whether there is default abnormal key word, and the operation prompt information solving exception corresponding to this abnormal key word is generated when existing, solve to instruct user that this exception causes without response problem, thus improve terminal operating efficiency.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of mobile terminal that the embodiment of the present invention provides, concrete, and the described mobile terminal of the embodiment of the present invention comprises diagnostic module 11, information generating module 12 and the first output module 13.Wherein,
Described diagnostic module 11, for when mobile terminal is without response, diagnoses described mobile terminal according to the diagnostic rule preset, obtains the described diagnostic result without response.
It should be noted that, the described mobile terminal of the embodiment of the present invention includes but not limited to smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, MID or PDA etc.
In specific embodiment, when there is the situation without response in terminal, diagnostic module 11 can be diagnosed present terminal according to the diagnostic rule preset, there is the service condition without present terminal CPU during response in such as diagnosis, and/or situation about occurring without terminal operating stack (trace) during response, thus obtain the diagnostic result of this nothing response.Wherein, this diagnostic result can comprise overloaded cpu (i.e. cpu busy), deadlock situation occurs, applies self main thread operating database, to apply self main thread operational network and application and present terminal incompatible etc.
Described information generating module 12, corresponding to described diagnostic result solving the described operation prompt information without responding for generating.
In specific embodiment, after diagnostic module 11 obtains the current diagnostic result without response, information generating module 12 can generate the operation prompt information corresponding with this diagnostic result, solves this without response problem to instruct user.Such as, after diagnostic module 11 diagnosis obtains the diagnostic result of present terminal cpu busy, information generating module 12 can generate the operation prompt information in reminding user cleaning tag memory space, thus solve that this cpu busy causes without response problem.
Described first output module 13, for exporting the described operation prompt information that described information generating module 12 generates, operates described mobile terminal according to described operation prompt information with reminding user.
Concrete, first output module 13 is when exporting this operation prompt information, this operation prompt information can be exported especially by a dialog frame, to notify the current solution without response of user, user can operate terminal according to the operation indicating of this output, thus solves this without response problem.
Implement the embodiment of the present invention to occur carrying out without response diagnostics terminal without during response in terminal, thus obtain the diagnostic result of this nothing response, and export the operation prompt information corresponding according to this diagnostic result, this is solved without response problem to instruct user, user can be known and take which kind of measure to solve this without response problem, thus improve terminal operating efficiency.
Further, refer to Fig. 5, Fig. 5 is the structural representation of the another kind of mobile terminal that the embodiment of the present invention provides, concrete, the described mobile terminal of the embodiment of the present invention comprises the diagnostic module 11 of mobile terminal in the corresponding embodiment of above-mentioned Fig. 4, information generating module 12 and the first output module 13.Further, in embodiments of the present invention, described diagnostic module 11 can comprise:
Acquiring unit 111, for when mobile terminal is without response, uses the first configuration file of information from the central processor CPU comprising described mobile terminal and obtains the described current C PU occupation value without described mobile terminal during response;
Judging unit 112, for judging whether the described current C PU occupation value that described acquiring unit 111 obtains exceedes default first threshold;
First generation unit 113, in the judged result of described judging unit 112 be described current C PU occupation value exceed described first threshold time, generate the diagnostic result of the CPU current overload of described mobile terminal.
In an alternate embodiment of the invention, terminal according to the diagnosis without the service condition of present terminal CPU during response, can acquire the operation prompt information that the response of this nothing is corresponding.Concrete, store the first configuration file of the current use information that have recorded this terminal CPU in terminal, when terminal occurs without response problem, acquiring unit 111 can find out current C PU occupation value from this first configuration file.Wherein, this current CPU occupation value can be in the ad-hoc location in described first configuration file, and when acquiring unit 111 searches this current CPU occupation value, the numerical value that the ad-hoc location from this configuration file terminal can be read out is as this current CPU occupation value.
Concrete, a CPU can be pre-set and take threshold value and first threshold, such as be set to 96%, if judging unit 112 judge obtain current C PU occupation value exceed this 96%, then generate one by the first generation unit 113 and show CPU current overload, the diagnostic result that namely system is busy.
Described information generating module 12 can be specifically for:
According to the diagnostic result of the CPU current overload of described mobile terminal, generate the operation prompt information for pointing out user to clear up described mobile terminal memory headroom.
After diagnostic module 11 diagnosis obtains the busy diagnostic result of current system, information generating module 12 can generate one for solving the operation prompt information of the busy problem of this system, such as generate the operation prompt information that a prompting user clears up memory headroom, and export this operation prompt information by the first output module 13, thus solve that this cpu busy causes without response problem.Optionally, also can comprise this diagnostic result in described operation prompt information, namely the first output module 13 can export reason and the solution of this nothing response simultaneously.
In embodiments of the present invention, can occur to carry out without response diagnostics terminal without during response problem in terminal, acquire current C PU occupation value, and determine CPU current overload when CPU occupation value exceedes predetermined threshold value in this prior, obtain the diagnostic result of this CPU current overload, thus export the operation prompt information that prompting user clears up tag memory space, to instruct user to solve this overloaded cpu problem, make to improve terminal operating efficiency.
Further alternative, in embodiments of the present invention, described diagnostic module 11 can also comprise:
Detecting unit 114, for when mobile terminal is without response, detects and comprises in the second configuration file of the running stack information of described mobile terminal whether there is the key word identical with the abnormal key word preset;
Second generation unit 115, for according to described identical key word, generates the diagnostic result for describing exception corresponding to described identical key word.
In an alternate embodiment of the invention, terminal also according to the diagnosis to the running stack situation without present terminal during response, can acquire the operation prompt information that the response of this nothing is corresponding.Concrete, terminal also stores the second configuration file of the running stack information that have recorded this terminal.When terminal occurs without response problem, whether detecting unit 114 can exist the key word identical with the abnormal key word preset in this second configuration file of detection trigger, and generates the diagnostic result for describing exception corresponding to this identical key word when existing by the second generation unit 115.Wherein, this abnormal key word can be obtained by Operation system setting, or is obtained by the self-defined setting of relevant research staff, and the embodiment of the present invention does not limit.
Concrete, this abnormal key word can comprise multiple, whether described detecting unit 114 detects to comprise in the second configuration file of the running stack information of described mobile terminal whether there is the key word identical with the abnormal key word preset, and can be specially: detect to comprise in the second configuration file of the running stack information of described mobile terminal and exist and any one identical key word in multiple described abnormal key word; If exist and any one identical key word in multiple described abnormal key word, then determine to there is the key word identical with the abnormal key word preset in described second configuration file.
Described information generating module 12 can be specifically for:
Generate the operation prompt information for solving exception corresponding to described identical key word.
Specifically, terminal preset has multiple abnormal key word, as "-waiting on ", " ContentResolver.query ", " MessageQueue.nativePollOnce ", " OSNetworkSystem.receiveStream ", " VMRuntime.trackExternalAllocation " etc.If detecting unit 114 detects the second configuration file, such as tracesFile file comprises "-waiting on " this abnormal key word, then show to create deadlock situation, apply and self go wrong, then the second generation unit 115 can generate one occurs deadlock situation diagnostic result for describing this application, and generates one for pointing out the operation prompt information of user's more new opplication by information generating module 12, if detecting unit 114 detects that this tracesFile file comprises " ContentResolver.query " this abnormal key word, then show because application native codes lack of standardization causing applies self main thread operating database, then the second generation unit 115 can generate one for describing the diagnostic result of this application self main thread operating database, and generate one for pointing out the operation prompt information of user more new opplication or cleaning tag memory space (cleaning memory headroom can reduce the generation of the situation of this application self main thread operating database equally) by information generating module 12, if detecting unit 114 detects that this tracesFile file comprises " MessageQueue.nativePollOnce " this abnormal key word, then show terminal CPU current overload and terminal system busy, then the second generation unit 115 can generate one for describing the busy diagnostic result of this system, and generates an operation prompt information for pointing out user to clear up tag memory space by information generating module 12, if detecting unit 114 detects that this tracesFile file comprises " OSNetworkSystem.receiveStream " this abnormal key word, then show because application native codes lack of standardization causing applies self main thread operational network, then the second generation unit 115 can generate one for describing the diagnostic result of this application self main thread operational network, and generates one for pointing out user more new opplication or the operation prompt information that by the time uses in the good situation of network by information generating module 12, if detecting unit 114 detects that this tracesFile file comprises " VMRuntime.trackExternalAllocation " this abnormal key word, then show application and terminal incompatible, then the second generation unit 115 can generate the application diagnostic result incompatible with terminal, and generate an operation prompt information for pointing out user to solve this incompatibility problem by information generating module 12, such as unload the mode of this application or other these incompatibility problems solved.Optionally, also can comprise this diagnostic result in described operation prompt information, namely the first output module 13 can export reason and the solution of this nothing response simultaneously.
Further, in embodiments of the present invention, described mobile terminal can also comprise:
Second output module 14, for exporting diagnosis prompting message, described diagnosis prompting message is diagnosed the need of to described mobile terminal for pointing out user;
Notification module 15, for when receiving the confirmation diagnostic instruction that user inputs for described diagnosis prompting message, notifying that described diagnostic module 11 is diagnosed described mobile terminal according to the diagnostic rule preset, obtaining the described diagnostic result without response.
In specific embodiment, when terminal is without response, terminal can also export a diagnosis prompting message by the second output module 14, diagnose the need of to this terminal for reminding user, and the confirmation diagnostic instruction receiving user and input for this diagnosis prompting message, such as receive user when clicking the confirmation diagnostic instruction that confirmation button corresponding to this diagnosis prompting message trigger, notify that diagnostic module 11 is diagnosed described mobile terminal according to the diagnostic rule preset by notification module 15, obtain the described diagnostic result without response; Otherwise, be left intact.
Pass through the embodiment of the present invention, can occur to use information to carry out without response diagnostics without during response problem according to terminal CPU in terminal, acquire current C PU occupation value, and determine CPU current overload when CPU occupation value exceedes predetermined threshold value in this prior, obtain the diagnostic result of this CPU current overload, thus export the operation prompt information that prompting user clears up tag memory space, solve this overloaded cpu problem to instruct user.Further, if this current CPU occupation value does not exceed this predetermined threshold value, also can carry out without response diagnostics the running stack information of terminal, namely detect to comprise in the configuration file of this running stack information whether there is default abnormal key word, and the operation prompt information solving exception corresponding to this abnormal key word is generated when existing, solve to instruct user that this exception causes without response problem, thus improve terminal operating efficiency.
Refer to Fig. 6, Fig. 6 is the structural representation of another mobile terminal that the embodiment of the present invention provides, for performing above-mentioned information prompting method.As shown in Figure 6, described mobile terminal can comprise: at least one processor 100, at least one input media 200, at least one output unit 300, assembly such as storer 500 grade.Wherein, these assemblies are communicated to connect by one or more bus 400.It will be appreciated by those skilled in the art that, the structure of the terminal shown in Fig. 6 does not form the restriction to the embodiment of the present invention, it both can be busbar network, also can be hub-and-spoke configuration, the parts more more or less than diagram can also be comprised, or combine some parts, or different parts are arranged.Wherein:
Processor 100 is the control center of terminal, utilize the various piece of various interface and the whole terminal of connection, by running or perform the program in storer 500 of being stored in and/or module, and call the data be stored in storer 500, to perform various function and the process data of terminal.Processor 100 by integrated circuit (Integrated Circuit is called for short IC) composition, such as, can be made up of the IC of single encapsulation, also can be made up of the encapsulation IC connecting many identical functions or difference in functionality.For example, processor 100 only can comprise central processing unit (Central Processing Unit, be called for short CPU), also can be CPU, digital signal processor (digital signal processor, be called for short DSP), the combination of graphic process unit (Graphic ProcessingUnit, be called for short GPU) and various control chip.In embodiments of the present invention, CPU can be single arithmetic core, also can comprise multioperation core.
Input media 200 can comprise the touch-screen of standard, keyboard, shooting are first-class, also can include line interface, wave point etc.
Output unit 300 can comprise display screen, loudspeaker etc., also can include line interface, wave point etc.
Storer 500 can be used for storing software program and module, processor 100, input media 200 and output unit 300 are stored in software program in storer 500 and module by calling, thus perform the various functions application of terminal and realize data processing.Storer 500 mainly comprises program storage area and data storage area, and wherein, program storage area can store operating system, application program etc. needed at least one function; Data storage area can store the data etc. created according to the use of terminal.In embodiments of the present invention, operating system can be android system, iOS system or Windows operating system etc.
Concrete, processor 100 calls the application program be stored in storer 500, for performing following steps:
When mobile terminal is without response, according to the diagnostic rule preset, described mobile terminal is diagnosed, obtain the described diagnostic result without response;
Generate corresponding to described diagnostic result solving the described operation prompt information without responding;
Export described operation prompt information, according to described operation prompt information, described mobile terminal is operated with reminding user.
Optionally, processor 100 calls the described diagnostic rule according to presetting of application program execution be stored in storer 500 and diagnoses described mobile terminal, obtains the described diagnostic result without response, specifically performs following steps:
Use the first configuration file of information from the central processor CPU comprising described mobile terminal and obtain the described current C PU occupation value without described mobile terminal during response;
Judge whether described current C PU occupation value exceedes default first threshold;
If exceed described first threshold, then generate the diagnostic result of the CPU current overload of described mobile terminal;
Processor 100 calls the application program be stored in storer 500 and performs for solve described without the operation prompt information that respond corresponding with described diagnostic result of described generation, specifically performs following steps:
According to the diagnostic result of the CPU current overload of described mobile terminal, generate the operation prompt information for pointing out user to clear up described mobile terminal memory headroom.
Optionally, processor 100 calls the described diagnostic rule according to presetting of application program execution be stored in storer 500 and diagnoses described mobile terminal, obtains the described diagnostic result without response, specifically performs following steps:
Detect and comprise in the second configuration file of the running stack information of described mobile terminal whether there is the key word identical with the abnormal key word preset;
According to described identical key word, generate the diagnostic result for describing exception corresponding to described identical key word;
Processor 100 calls the application program be stored in storer 500 and performs for solve described without the operation prompt information that respond corresponding with described diagnostic result of described generation, specifically performs following steps:
Generate the operation prompt information for solving exception corresponding to described identical key word.
Optionally, described operation prompt information comprises described diagnostic result.
Optionally, processor 100 calls the application program be stored in storer 500 and performs described diagnosis described mobile terminal according to default diagnostic rule, before obtaining the described diagnostic result without response, also for performing following steps:
Export diagnosis prompting message, described diagnosis prompting message is diagnosed the need of to described mobile terminal for pointing out user;
If receive the confirmation diagnostic instruction that user inputs for described diagnosis prompting message, then diagnosing described mobile terminal according to the diagnostic rule preset described in performing, obtains the step of the described diagnostic result without response.
Implement the embodiment of the present invention to occur carrying out without response diagnostics terminal without during response in terminal, thus obtain the diagnostic result of this nothing response, and export the operation prompt information corresponding according to this diagnostic result, this is solved without response problem to instruct user, user can be known and take which kind of measure to solve this without response problem, thus improve terminal operating efficiency.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random access memory (Random Access Memory is called for short RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. an information prompting method, is characterized in that, comprising:
When mobile terminal is without response, according to the diagnostic rule preset, described mobile terminal is diagnosed, obtain the described diagnostic result without response;
Generate corresponding to described diagnostic result solving the described operation prompt information without responding;
Export described operation prompt information, according to described operation prompt information, described mobile terminal is operated with reminding user.
2. method according to claim 1, is characterized in that, the described diagnostic rule according to presetting is diagnosed described mobile terminal, obtains the described diagnostic result without response, comprising:
Use the first configuration file of information from the central processor CPU comprising described mobile terminal and obtain the described current C PU occupation value without described mobile terminal during response;
Judge whether described current C PU occupation value exceedes default first threshold;
If exceed described first threshold, then generate the diagnostic result of the CPU current overload of described mobile terminal;
For solve described without the operation prompt information that respond corresponding with described diagnostic result of described generation, comprising:
According to the diagnostic result of the CPU current overload of described mobile terminal, generate the operation prompt information for pointing out user to clear up described mobile terminal memory headroom.
3. method according to claim 1, is characterized in that, the described diagnostic rule according to presetting is diagnosed described mobile terminal, obtains the described diagnostic result without response, comprising:
Detect and comprise in the second configuration file of the running stack information of described mobile terminal whether there is the key word identical with the abnormal key word preset;
According to described identical key word, generate the diagnostic result for describing exception corresponding to described identical key word;
For solve described without the operation prompt information that respond corresponding with described diagnostic result of described generation, comprising:
Generate the operation prompt information for solving exception corresponding to described identical key word.
4. the method according to any one of claim 1-3, is characterized in that, described operation prompt information comprises described diagnostic result.
5. method according to claim 1, is characterized in that, diagnoses described mobile terminal at the described diagnostic rule according to presetting, and before obtaining the described diagnostic result without response, described method also comprises:
Export diagnosis prompting message, described diagnosis prompting message is diagnosed the need of to described mobile terminal for pointing out user;
If receive the confirmation diagnostic instruction that user inputs for described diagnosis prompting message, then diagnosing described mobile terminal according to the diagnostic rule preset described in performing, obtains the step of the described diagnostic result without response.
6. a mobile terminal, is characterized in that, comprising:
Diagnostic module, for when mobile terminal is without response, diagnoses described mobile terminal according to the diagnostic rule preset, obtains the described diagnostic result without response;
Information generating module, corresponding to described diagnostic result solving the described operation prompt information without responding for generating;
First output module, for exporting the described operation prompt information that described information generating module generates, operates described mobile terminal according to described operation prompt information with reminding user.
7. mobile terminal according to claim 6, is characterized in that, described diagnostic module comprises:
Acquiring unit, for when mobile terminal is without response, uses the first configuration file of information from the CPU comprising described mobile terminal and obtains the described current C PU occupation value without described mobile terminal during response;
Judging unit, for judging whether the described current C PU occupation value that described acquiring unit obtains exceedes default first threshold;
First generation unit, in the judged result of described judging unit be described current C PU occupation value exceed described first threshold time, generate the diagnostic result of the CPU current overload of described mobile terminal;
Described information generating module specifically for:
According to the diagnostic result of the CPU current overload of described mobile terminal, generate the operation prompt information for pointing out user to clear up described mobile terminal memory headroom.
8. mobile terminal according to claim 6, is characterized in that, described diagnostic module comprises:
Detecting unit, for when mobile terminal is without response, detects and comprises in the second configuration file of the running stack information of described mobile terminal whether there is the key word identical with the abnormal key word preset;
Second generation unit, for according to described identical key word, generates the diagnostic result for describing exception corresponding to described identical key word;
Described information generating module specifically for:
Generate the operation prompt information for solving exception corresponding to described identical key word.
9. the mobile terminal according to any one of claim 6-8, is characterized in that, described operation prompt information comprises described diagnostic result.
10. mobile terminal according to claim 6, is characterized in that, described mobile terminal also comprises:
Second output module, for exporting diagnosis prompting message, described diagnosis prompting message is diagnosed the need of to described mobile terminal for pointing out user;
Notification module, for when receiving the confirmation diagnostic instruction that user inputs for described diagnosis prompting message, notifying that described diagnostic module is diagnosed described mobile terminal according to the diagnostic rule preset, obtaining the described diagnostic result without response.
CN201510273805.8A 2015-05-26 2015-05-26 Information reminding method and mobile terminal Pending CN105005526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510273805.8A CN105005526A (en) 2015-05-26 2015-05-26 Information reminding method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510273805.8A CN105005526A (en) 2015-05-26 2015-05-26 Information reminding method and mobile terminal

Publications (1)

Publication Number Publication Date
CN105005526A true CN105005526A (en) 2015-10-28

Family

ID=54378205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510273805.8A Pending CN105005526A (en) 2015-05-26 2015-05-26 Information reminding method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105005526A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607980A (en) * 2016-03-08 2016-05-25 广东欧珀移动通信有限公司 Method and device for handling response anomaly of user equipment
CN106911494A (en) * 2016-07-04 2017-06-30 阿里巴巴集团控股有限公司 A kind of failure solution and device
CN107729180A (en) * 2017-09-30 2018-02-23 珠海市魅族科技有限公司 Abnormal information processing method and processing device, computer installation and readable storage medium storing program for executing
CN109522152A (en) * 2018-09-06 2019-03-26 清华大学 Electron microscopic data disaster recovery method, storage medium and device
CN110427229A (en) * 2019-07-29 2019-11-08 努比亚技术有限公司 Using no response processing method, mobile terminal and computer readable storage medium
CN112154406A (en) * 2019-10-28 2020-12-29 深圳市大疆创新科技有限公司 Prompt control method, control terminal and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929739A (en) * 2012-11-08 2013-02-13 东莞宇龙通信科技有限公司 Terminal and terminal control method
CN103019913A (en) * 2012-11-21 2013-04-03 广东欧珀移动通信有限公司 Abnormal prompting method and system for mobile terminals and hardware thereof
US20130185605A1 (en) * 2004-02-17 2013-07-18 Mitsuo Ando Image forming apparatus, terminal apparatus, information processing method, information processing program and computer readable recording medium
CN103634441A (en) * 2012-08-24 2014-03-12 腾讯科技(深圳)有限公司 Method and device for testing mobile terminal
CN104461922A (en) * 2014-12-29 2015-03-25 北京奇虎科技有限公司 System optimization method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130185605A1 (en) * 2004-02-17 2013-07-18 Mitsuo Ando Image forming apparatus, terminal apparatus, information processing method, information processing program and computer readable recording medium
CN103634441A (en) * 2012-08-24 2014-03-12 腾讯科技(深圳)有限公司 Method and device for testing mobile terminal
CN102929739A (en) * 2012-11-08 2013-02-13 东莞宇龙通信科技有限公司 Terminal and terminal control method
CN103019913A (en) * 2012-11-21 2013-04-03 广东欧珀移动通信有限公司 Abnormal prompting method and system for mobile terminals and hardware thereof
CN104461922A (en) * 2014-12-29 2015-03-25 北京奇虎科技有限公司 System optimization method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘望舒: ""浅谈ANR及log分析ANR"", 《HTTP://BLOG.CSDN.NET/ITACHI85/ARTICLE/DETAILS/6918761》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607980A (en) * 2016-03-08 2016-05-25 广东欧珀移动通信有限公司 Method and device for handling response anomaly of user equipment
CN105607980B (en) * 2016-03-08 2019-02-01 Oppo广东移动通信有限公司 User device responsive abnormality eliminating method and device
CN106911494A (en) * 2016-07-04 2017-06-30 阿里巴巴集团控股有限公司 A kind of failure solution and device
CN107729180A (en) * 2017-09-30 2018-02-23 珠海市魅族科技有限公司 Abnormal information processing method and processing device, computer installation and readable storage medium storing program for executing
CN107729180B (en) * 2017-09-30 2020-07-03 珠海市魅族科技有限公司 Abnormal information processing method and device, computer device and readable storage medium
CN109522152A (en) * 2018-09-06 2019-03-26 清华大学 Electron microscopic data disaster recovery method, storage medium and device
CN109522152B (en) * 2018-09-06 2021-05-14 清华大学 Disaster recovery method, storage medium and device for electron microscope data
CN110427229A (en) * 2019-07-29 2019-11-08 努比亚技术有限公司 Using no response processing method, mobile terminal and computer readable storage medium
CN110427229B (en) * 2019-07-29 2024-03-19 努比亚技术有限公司 Application non-response processing method, mobile terminal and computer readable storage medium
CN112154406A (en) * 2019-10-28 2020-12-29 深圳市大疆创新科技有限公司 Prompt control method, control terminal and computer readable storage medium
WO2021081718A1 (en) * 2019-10-28 2021-05-06 深圳市大疆创新科技有限公司 Prompt control method, control terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN105005526A (en) Information reminding method and mobile terminal
CN103034575B (en) Collapse analytical approach and device
CN107832190B (en) Diagnosis method for power consumption abnormity, mobile terminal and storage medium
WO2017049893A1 (en) Application program testing method, testing apparatus, and mobile terminal
CN114168222B (en) Method and device for acquiring time consumption during starting, terminal equipment and storage medium
CN103221899A (en) Tactile input device, microprocessor system and method for controlling a tactile input device
CN105117110A (en) Method and device for displaying user equipment state on preset interface of application program
EP4182796A1 (en) Machine learning-based techniques for providing focus to problematic compute resources represented via a dependency graph
CN108984255B (en) Remote assistance method and related equipment
CN102169390B (en) Information terminal and touch control method thereof
CN107943605B (en) Memory card processing method and device
CN112241362A (en) Test method, test device, server and storage medium
CN114138363A (en) Program data calling method, device, equipment and storage medium
CN106021024A (en) Method for reminding response stopping of user terminal, and user terminal
CN111475356A (en) System startup test information display method and related device
CN103975310A (en) Method and apparatus for saving processor information prior to a reset for post reset evaluation
CN105511639A (en) Input control method and device for input method as well as terminal equipment
CN107168776B (en) Event statistical method, device, equipment and storage medium
CN115543759A (en) Log lookup method and device for operating system, electronic device and storage medium
CN108520063A (en) Processing method, device and the terminal device of event log
CN115185724A (en) Fault processing method, device, electronic equipment and storage medium
CN113946493A (en) Monitoring threshold determination and monitoring alarm method, device, equipment and medium
CN105930224A (en) Dump operation control method, device and terminal
CN111786856A (en) Browser environment checking method and device
CN112685045A (en) Page source file processing method and device, electronic equipment and storage medium

Legal Events

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

Application publication date: 20151028

RJ01 Rejection of invention patent application after publication