CN107302769A - A kind of error information report method, terminal and computer-readable recording medium - Google Patents
A kind of error information report method, terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107302769A CN107302769A CN201710458830.2A CN201710458830A CN107302769A CN 107302769 A CN107302769 A CN 107302769A CN 201710458830 A CN201710458830 A CN 201710458830A CN 107302769 A CN107302769 A CN 107302769A
- Authority
- CN
- China
- Prior art keywords
- network
- terminal
- error information
- preparatory condition
- error
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/10—Scheduling measurement reports ; Arrangements for measurement reports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
Abstract
The embodiment of the invention discloses a kind of error information report method, terminal and computer-readable recording medium.Including:When detecting application program and reporting an error, the error information of the application program is obtained;Judge whether the network of terminal meets preparatory condition;If the network of the terminal meets the preparatory condition, the error information is reported;If the network of the terminal is unsatisfactory for the preparatory condition, delay reports the error information.Error information report method provided in an embodiment of the present invention, it can avoid blindly reporting error information and the phenomenon for reporting failure occur, in the case where network is unsatisfactory for preparatory condition, delay reports error information simultaneously, the success rate that error information is reported can also be improved so that application program is repaired in time.
Description
Technical field
The present invention relates to terminal communication technical field, more particularly to a kind of error information report method, terminal and computer
Readable storage medium storing program for executing.
Background technology
With the fast development of the intelligent terminals such as mobile phone, tablet personal computer, the function of terminal is gradually powerful, by end
Various application programs are installed in end can realize the functions such as shopping online, chat, viewing video.But these application programs are being used
During can occur uncertain mistake, terminal can point out user to report error information to background server.
However, clicked in user after confirmation reports button, error information will real-time report to server, and due to instantly
The influence of network or other factorses, reports the phenomenon of failure to occur often, and now terminal no longer shows and reports error information
Prompting frame, this error information can not just report to server, and application program can not be repaired timely, and error information is reported
Success rate it is relatively low.
The content of the invention
, can The embodiment provides a kind of error information report method, terminal and computer-readable recording medium
To improve the success rate that error information is reported so that application program is timely repaired.
In a first aspect, the embodiments of the invention provide a kind of error information report method, it includes:
When detecting application program and reporting an error, the error information of the application program is obtained;
Judge whether the network of terminal meets preparatory condition;
If the network of the terminal meets the preparatory condition, the error information is reported;
If the network of the terminal is unsatisfactory for the preparatory condition, delay reports the error information.
Second aspect, the embodiment of the present invention additionally provides a kind of terminal, and it includes:
Information acquisition unit, for when detecting application program and reporting an error, obtaining the error information of the application program;
Judging unit, for judging whether the network of terminal meets preparatory condition;
Reporting unit, if the network for the terminal meets the preparatory condition, reports the error information;
Postpone reporting unit, if the network for the terminal is unsatisfactory for the preparatory condition, delay reports described report an error
Information.
The third aspect, the embodiment of the present invention provides a kind of terminal again, and it includes processor, input equipment, output equipment
And memory, the processor, input equipment, output equipment and memory interconnection, wherein, the memory is used to store
Program code, the processor is arranged to call described program code, performs the report described in any one that the present invention is provided
Wrong information uploading method.
Fourth aspect, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, wherein the computer is deposited
Storage media is stored with computer program, and the computer program includes programmed instruction, and described program instruction is when being executed by processor
When make the error information report method described in any one that computing device invention provides.
The embodiment of the present invention by when detecting application program and reporting an error, obtaining the error information of the application program, and
Judge whether the network of terminal meets preparatory condition;If the network of the terminal meets the preparatory condition, described report an error is reported
Information;If the network of the terminal is unsatisfactory for the preparatory condition, delay reports the error information, can so avoid blindly
Report error information and the phenomenon for reporting failure occur, while postponing to report in the case where network is unsatisfactory for preparatory condition to report an error
Information, can also improve the success rate that error information is reported so that application program is repaired in time.
Brief description of the drawings
Technical scheme, is used required in being described below to embodiment in order to illustrate the embodiments of the present invention more clearly
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of error information report method provided in an embodiment of the present invention;
Fig. 2 is the sub-step schematic flow diagram of step S102 in error information report method shown in Fig. 1;
Fig. 3 is a kind of another schematic flow diagram of error information report method provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 5 is a kind of another schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of another schematic block diagram of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" be indicated
Described feature, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, it is whole
Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and "the" are intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is
Refer to any combinations of one or more of the associated item listed and be possible to combination, and including these combinations.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow diagram of error information report method provided in an embodiment of the present invention.Should
Error information report method may operate in smart mobile phone (such as Android phone, IOS mobile phones), tablet personal computer or intelligence and wear
Wear in the terminals such as equipment.As shown in figure 1, the error information report method includes step S101~S104.
S101, when detecting application program and reporting an error, obtain the error information of the application program.
In general, many application programs can be installed in terminal, during user uses these application programs, these
Application program is likely to that mistake occurs, and then this time is interrupted using application program.In order to can be wrong to occurring in time
Application program is repaired by mistake, to improve the stability that application program is run, in the present embodiment, when detecting application program
When reporting an error, i.e., there is mistake in application program, and terminal will obtain the error information of the application program.
In one embodiment, the error information of application program can include error stack information.Wherein, error stack information
It can be the lines of code of generation of reporting an error.Certainly, error information can also can be identified for that out that application program occurs by others
Wrong information, be not particularly limited herein.
S102, judge whether the network of terminal meets preparatory condition.
In one embodiment, judge whether the network of terminal meets the concrete mode of preparatory condition and include:Judge terminal
Whether network is in stable state.If the network of terminal is in stable state, judge that the network of terminal meets preparatory condition.If
The network of terminal is not in stable state, then judges that the network of terminal is unsatisfactory for preparatory condition.
Further, in one embodiment, judge whether the network of terminal is in stable state, can include:Obtain eventually
Disconnection times of the network at end in preset time period, judge whether the disconnection times exceed preset times.If described disconnect
Number of times exceedes preset times, illustrates current unstable networks, easily goes offline, and the network for judging terminal now is not in into stabilization
State;If the disconnection times are not less than preset times, illustrate that current network connection state preferably, now judges the net of terminal
Network is in stable state.
It is understood that judge whether the network of terminal is not limited to aforesaid way in the mode of stable state, can
To use other judgment modes, it is not particularly limited herein.
In addition, judge whether the network of terminal meets the concrete mode of preparatory condition and be also not limited to aforesaid way, for example,
As shown in Fig. 2 the sub-step schematic flow diagram that Fig. 2 is step S102 in error information report method shown in Fig. 1.Step S102
Including sub-step S102a~S102d.
Whether S102a, the network for judging terminal are WLAN.
In one embodiment, whether the network for judging terminal is that WLAN is specifically included:Judging the network of terminal is
No is Wireless Fidelity WIFI nets.
If the network of S102b, the terminal is WLAN, judge that the network of the terminal meets preparatory condition.
In one embodiment, if the network of terminal is Wireless Fidelity WIFI nets, judge that the network of the terminal meets default
Condition.
If the network of S102c, the terminal is not WLAN, judge whether the file size of the error information surpasses
Cross predetermined threshold value.
In one embodiment, when the network for judging terminal is not WLAN, terminal can be determined that the net of terminal
Network is unsatisfactory for preparatory condition.That is, terminal is set reports error information in the case of a wireless local area network, and mobile logical
Error information is not reported in the case of other networks such as letter net.It thus is avoided that the mobile stream for reporting error information and wasting user
Amount.
Certainly, in other embodiments, when the file size of error information is smaller, even in nets such as mobile radio communications
Error information is reported under network state, the more mobile flow of user will not be also wasted, therefore, in order to which the letter that reports an error can be reported as early as possible
Breath, when judging the network of terminal for WLAN, whether the file size that will further determine error information exceedes
Predetermined threshold value, that is, perform step S102c.
The file size for judging error information as step S102c illustrates the file of error information not less than predetermined threshold value
Size is smaller, will not waste the more flow of user, and the network for judging terminal now is met into preparatory condition, that is, performs step
S102b。
When step S102c judges that the file size of error information exceedes predetermined threshold value, illustrate that the file of error information is big
It is small than larger, if reporting error information to waste the more flow of user using current network, now will judge terminal net
Network is unsatisfactory for preparatory condition, that is, performs step S102d.
If the file size of S102d, the error information exceedes predetermined threshold value, judge the terminal network be unsatisfactory for it is pre-
If condition.
If S103, the network of the terminal meet the preparatory condition, the error information is reported.
When the network for judging terminal meets preparatory condition, illustrate that current network is adapted to report error information, now
Error information will be reported to respective server, in order to which server is according to the timely repairing applications of error information, application is improved
The stability of program operation.
If S104, the network of the terminal are unsatisfactory for the preparatory condition, delay reports the error information.
When the network for judging terminal is unsatisfactory for preparatory condition, illustrate that current network is not suitable for reporting error information,
In order to ensure that error information can successfully report to server, delay is reported error information by terminal, it is to avoid utilize discomfort
The network for closing report error information performs and reports operation and occur reporting the phenomenon such as unsuccessfully, improves the success that error information is reported
Rate.
The embodiment of the present invention by when detecting application program and reporting an error, obtaining the error information of the application program, and
Judge whether the network of terminal meets preparatory condition;If the network of the terminal meets the preparatory condition, described report an error is reported
Information;If the network of the terminal is unsatisfactory for the preparatory condition, delay reports the error information, can so avoid blindly
Report error information and the phenomenon for reporting failure occur, while postponing to report in the case where network is unsatisfactory for preparatory condition to report an error
Information, can also improve the success rate that error information is reported so that application program is repaired in time.
Referring to Fig. 3, Fig. 3 is a kind of another exemplary flow of error information report method provided in an embodiment of the present invention
Figure.The error information report method may operate in smart mobile phone (such as Android phone, IOS mobile phones), tablet personal computer or intelligence
In the terminals such as energy wearable device, it is not particularly limited herein.As shown in Fig. 2 the error information report method includes step S201
~S209.
S201, when detecting application program and reporting an error, obtain the error information of the application program.
In general, many application programs can be installed in terminal, during user uses these application programs, these
Application program is likely to that mistake occurs, and then this time is interrupted using application program.In order to can be wrong to occurring in time
Application program is repaired by mistake, to improve the stability that application program is run, in the present embodiment, when detecting application program
When reporting an error, i.e., there is mistake in application program, and terminal will obtain the error information of the application program.
In one embodiment, the error information of application program can include error stack information.Wherein, error stack information
It can be the lines of code of generation of reporting an error.Certainly, error information can also can be identified for that out that application program occurs by others
Wrong information, be not particularly limited herein.
S202, based on the error information, acquisition reports trigger event to the error information.
In one embodiment, when terminal gets error information, will report an error prompted dialog frame according to error information generation.
The prompted dialog frame that reports an error is used to point out user application mistake occur.Wherein, provided with extremely in this reports an error prompted dialog frame
A few operable button.If user wishes to report error information, user can click on the operable button, and now terminal will be obtained
Get and trigger event is reported to the error information.
It is understood that terminal based on error information obtain the corresponding mode for reporting trigger event be not limited to it is above-mentioned
Mode, is not particularly limited herein.
Trigger event is reported described in S203, basis, judges whether the network of terminal meets preparatory condition.
When terminal, which is got, reports trigger event, it will determine that whether the network of terminal meets preparatory condition.Implement one
In example, judge whether the network of terminal meets preparatory condition and can include:Judge whether the network of terminal is in stable state.If
The network of terminal is in stable state, then judges that the network of terminal meets preparatory condition.If the network of terminal is not in stablizing shape
State, then judge that the network of terminal is unsatisfactory for preparatory condition.
In another embodiment, judge whether the network of terminal meets preparatory condition and can include:Judge the network of terminal
Whether it is WLAN.If the network of the terminal is WLAN, judge that the network of the terminal meets preparatory condition.
If the network of the terminal is not WLAN, judge that the network of the terminal is unsatisfactory for preparatory condition.
It is understood that judge terminal network whether meet preparatory condition embodiment be not limited to it is above-mentioned
Two kinds, it is not particularly limited herein.
If S204, the network of the terminal meet the preparatory condition, the error information is reported.
When step S203 judges that the network of terminal meets preparatory condition, illustrate that current network is adapted to report the letter that reports an error
Breath, will now report error information to respective server, in order to which server is according to the timely repairing applications of error information, carry
The stability of high application program operation.
If S205, the network of the terminal are unsatisfactory for the preparatory condition, the error information is preserved.
When step S203 judges that the network of terminal is unsatisfactory for preparatory condition, illustrate that current network is not suitable for reporting report
Wrong information, in order to ensure that error information can successfully report to server, terminal will not temporarily report error information, and protect
Deposit error information.
Whether S206, the network of the monitoring terminal switch.
After error information is preserved, whether the network of monitoring terminal is switched.For example, when step S203 judges
The network of terminal is not in stable state, or when judging that the network of terminal is not WLAN, illustrates current net
Network is not suitable for reporting error information, and the network of terminal, which needs to switch to other networks, to be only possible to triggering and report operation.
If S207, the network of the terminal switch, judge whether the network after switching meets the preparatory condition.
When the step S206 networks for detecting terminal switch, it is adapted to the network for reporting error information to find,
Terminal will further judge whether the network after switching meets preparatory condition.
If the network after switching meets preparatory condition, step S208 is performed.If the network after switching is unsatisfactory for default bar
During part, terminal, which can return to execution step S207 or return, performs step S206.Specifically, if the network after switching is unsatisfactory for
Preparatory condition in stable state, terminal can return to execution step S207.If the network after switching is unsatisfactory in wireless
The preparatory condition of LAN, terminal can return to execution step S206.
If the network after S208, the switching meets the preparatory condition, obtaining the communication of the network after the switching needs
The amount of asking.
In one embodiment, when step S207 judges that the network after switching meets preparatory condition, terminal can be returned
Step S204 is performed, that is, reports error information to corresponding server.
In another embodiment, when the network of terminal switches, terminal is generally required by many things of network processes
Feelings so that network is in busy state.If now blindly reporting error information, it is possible to which appearance causes because of network busy
Report lost property to the authorities and the phenomenon such as lose and occur.Therefore, in order to improve the success rate that reports of error information, terminal judges that the network after switching is met
During preparatory condition, the communication requirement amount of the network after switching is obtained.
S209, according to the communication requirement amount, judge the network after the switching whether be in idle condition.
In one embodiment, judge whether the network after the switching is in idle condition according to the communication requirement amount,
Specifically include:Judge whether the communication requirement amount exceedes preset need amount.If the communication requirement amount is not less than preset need
Amount, illustrates that the data interaction of the network after switching is less, it is possible to determine that the network after switching is in idle condition, can now hold
Row reports the operation of error information, that is, performs step S204.
If the communication requirement amount exceedes preset need amount, illustrate that the data interaction of the network after switching is more, can sentence
Network after fixed switching is not in idle condition, now reports error information it is possible that reporting the phenomenon of failure, therefore, eventually
End, which will be returned, performs step S208 and S209, that is, reacquires the communication requirement amount of the network after switching, and rejudge switching
Whether network afterwards is in idle condition.
The embodiment of the present invention by when detecting application program and reporting an error, obtaining the error information of the application program, and
Judge whether the network of terminal meets preparatory condition;If the network of the terminal meets the preparatory condition, described report an error is reported
Information;If the network of the terminal is unsatisfactory for the preparatory condition, error information is preserved, and occur in the network for monitoring terminal
When network after switching and switching meets preparatory condition, determine whether whether the network after switching is in idle condition, when
When network after switching is in idle condition, report error information, can so avoid blindly reporting error information and on occurring
Report lost property to the authorities the phenomenon lost, improve the success rate that error information is reported.
Referring to Fig. 4, Fig. 4 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.Terminal 300 is included but not
It is limited to smart mobile phone (such as Android phone, IOS mobile phones), tablet personal computer or Intelligent worn device etc..As shown in figure 4, terminal
300 include information acquisition unit 310, judging unit 320, reporting unit 330 and delay reporting unit 340.
Information acquisition unit 310, for when detecting application program and reporting an error, obtaining the letter that reports an error of the application program
Breath.
In general, many application programs can be installed in terminal, during user uses these application programs, these
Application program is likely to that mistake occurs, and then this time is interrupted using application program.In order to can be wrong to occurring in time
Application program is repaired by mistake, to improve the stability of application program operation, in the present embodiment, works as information acquisition unit
310 detect application program when reporting an error, i.e., mistake occurs in application program, will obtain the error information of the application program.
Judging unit 320, for judging whether the network of terminal meets preparatory condition.
In one embodiment, judging unit 320 judges whether the network of terminal meets the concrete mode of preparatory condition and include:
Judge whether the network of terminal is in stable state.If the network of terminal is in stable state, judge that the network of terminal is met
Preparatory condition.If the network of terminal plays pendulum, judge that the network of terminal is unsatisfactory for preparatory condition.
In another embodiment, judging unit 320 judges whether the network of terminal meets the concrete mode bag of preparatory condition
Include:Whether the network for judging the terminal is WLAN.Further, judging unit 320 judge terminal network whether
For Wireless Fidelity WIFI nets.
If judging unit 320 judges that the network of terminal is WLAN, judge that the network of the terminal meets pre-
If condition.If judging unit 320 judges that the network of terminal is not WLAN, judge that the network of the terminal is unsatisfactory for
Preparatory condition.
Certainly, in other embodiments, when the file size of error information is smaller, even in mobile radio communication etc. its
Error information is reported under his network state, the more mobile flow of user will not be also wasted, therefore, in order to which report can be reported as early as possible
Wrong information, when it is not WLAN that judging unit 320, which judges the network of terminal, judging unit 320 determines whether institute
Whether the file size for stating error information exceedes predetermined threshold value.
If judging unit 320 judges that the file size of error information exceedes predetermined threshold value, the network of the terminal is judged
It is unsatisfactory for preparatory condition;If judging unit 320 judges that the file size of error information, not less than predetermined threshold value, judges the end
The network at end meets preparatory condition.
Reporting unit 330, if the network for the terminal meets the preparatory condition, reports the error information.
When judging unit 320 judges that the network of terminal meets preparatory condition, illustrate that current network is adapted to report report
Wrong information, now reporting unit 330 will report error information to respective server, in order to which server is timely according to error information
Repairing applications, improve the stability of application program operation.
Postpone reporting unit 340, if the network for the terminal is unsatisfactory for the preparatory condition, delay reports the report
Wrong information.
When judging unit 320 judges that the network of terminal is unsatisfactory for preparatory condition, illustrate current network be not suitable on
Error information is reported, in order to ensure that error information can successfully report to server, delay reporting unit 340 reports delay
Error information, it is to avoid occur reporting the phenomenon such as unsuccessfully using being not suitable for reporting the network of error information to perform reporting operation, carry
The success rate that high error information is reported.
In the embodiment of the present invention, information acquisition unit 310 obtains the application program when detecting application program and reporting an error
Error information, judging unit 320 judges whether the network of terminal meets preparatory condition;If the network of the terminal meets described
Preparatory condition, reporting unit 330 reports the error information;If the network of the terminal is unsatisfactory for the preparatory condition, delay
The delay of reporting unit 340 reports the error information, can so avoid blindly reporting error information and occurring reporting failure
Phenomenon, while delay reports error information in the case where network is unsatisfactory for preparatory condition, can also improve error information and report
Success rate so that application program is repaired in time.
Referring to Fig. 5, Fig. 5 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.Terminal 400 is included but not
It is limited to smart mobile phone (such as Android phone, IOS mobile phones), tablet personal computer or Intelligent worn device etc..As shown in figure 5, terminal
400 include information acquisition unit 410, event acquiring unit 420, judging unit 430, reporting unit 440 and delay reporting unit
450, wherein, delay reporting unit 450 includes storage unit 451, monitoring unit 452 and judges reporting unit 453.
Information acquisition unit 410, for when detecting application program and reporting an error, obtaining the letter that reports an error of the application program
Breath.
In general, many application programs can be installed in terminal, during user uses these application programs, these
Application program is likely to that mistake occurs, and then this time is interrupted using application program.In order to can be wrong to occurring in time
Application program is repaired by mistake, to improve the stability of application program operation, in the present embodiment, works as information acquisition unit
410 detect application program when reporting an error, i.e., mistake occurs in application program, will obtain the error information of the application program.
Event acquiring unit 420, for based on the error information, acquisition to report triggering thing to the error information
Part.
In one embodiment, after information acquisition unit 410 gets error information, information acquisition unit 410 will report an error
Information transmission is to event acquiring unit 420.Event acquiring unit 420 will generate the prompted dialog frame that report an error according to error information.
The prompted dialog frame that reports an error is used to point out user application mistake occur.Wherein, in the prompted dialog frame that reports an error
In be provided with least one operable button, if user wishes to report error information, user can click on the operable button, now
Event acquiring unit 420 will get and report trigger event to the error information.
It is understood that event acquiring unit 420 obtains the corresponding mode for reporting trigger event based on error information
Aforesaid way is not limited to, is not particularly limited herein.
Judging unit 430, for reporting trigger event according to, judges whether the network of the terminal meets default bar
Part.
After event acquiring unit 420, which is got, reports trigger event, trigger event will be reported to send to judging unit
430.Basis is reported trigger event to judge whether the network of terminal meets preparatory condition by judging unit 430.
In one embodiment, judging unit 430 judges whether the network of terminal meets the concrete mode of preparatory condition and include:
Judge whether the network of terminal is in stable state.If the network of terminal is in stable state, judge that the network of terminal is met
Preparatory condition.If the network of terminal is not in stable state, judge that the network of terminal is unsatisfactory for preparatory condition.
In another embodiment, judging unit 430 judges whether the network of terminal meets the concrete mode bag of preparatory condition
Include:Whether the network for judging terminal is WLAN.If the network of the terminal is WLAN, the terminal is judged
Network meets preparatory condition.If the network of the terminal is not WLAN, judge that the network of the terminal is unsatisfactory for presetting
Condition.
It is understood that judging unit 430 judges whether the network of terminal meets the embodiment of preparatory condition
Above two is not limited to, is not particularly limited herein.
Reporting unit 440, if the network for the terminal meets the preparatory condition, reports the error information.
When judging unit 430 judges that the network of terminal meets preparatory condition, illustrate that current network is adapted to report report
Wrong information, now reporting unit 440 will report error information to respective server, in order to which server is timely according to error information
Repairing applications, improve the stability of application program operation.
Postpone reporting unit 450, if the network for the terminal is unsatisfactory for the preparatory condition, delay reports the report
Wrong information.
When judging unit 430 judges that the network of terminal is unsatisfactory for preparatory condition, illustrate current network be not suitable on
Error information is reported, in order to ensure that error information can successfully report to server, delay reporting unit 450 will not postpone
Report error information.
Specifically, in one embodiment, when judging unit 430 judges that the network of terminal is unsatisfactory for preparatory condition, prolong
Storage unit 451 in slow reporting unit 450 preserves error information, and the network for monitoring the terminal by monitoring unit 452 is
It is no to switch.
If monitoring unit 452 monitors that the network of the terminal switches, judge that reporting unit 453 will determine that switching
Whether network afterwards meets the preparatory condition.Network after judging that reporting unit 453 judges the switching meets described
During preparatory condition, the error information is reported.
Certainly, in another embodiment, judge that reporting unit 453 judges that the network after the switching is met described default
During condition, judge that reporting unit 453 further obtains the communication requirement amount of the network after switching, and sentence according to communication requirement amount
Whether the network after the disconnected switching is in idle condition.
If judging, reporting unit 453 judges that the network after the switching is in idle condition, reports the error information.
If judging, reporting unit 453 judges that the network after the switching is not in idle condition, judges that reporting unit 453 is obtained again
The communication requirement amount of the network after switching is taken, and judges the network after the switching whether in idle shape according to communication requirement amount
State, untill judging that the network after switching is in idle condition.
In the embodiment of the present invention, information acquisition unit 410 obtains the application program when detecting application program and reporting an error
Error information, judging unit 430 reports trigger event according to what event acquiring unit 420 was obtained, and judging the network of terminal is
It is no to meet preparatory condition;If the network of the terminal meets the preparatory condition, reporting unit 440 reports the error information;
If the storage unit 451 that the network of the terminal is unsatisfactory in the preparatory condition, delay reporting unit 450 preserves the letter that reports an error
Breath, monitoring unit 452 monitor the network of terminal switch and judge reporting unit 453 judge switch after network
When meeting preparatory condition, judge that reporting unit 453 determines whether whether the network after switching is in idle condition, after switching
Network be in idle condition when, judge that reporting unit 453 reports error information, can so avoid blindness report error information
And there is the phenomenon for reporting failure, improve the success rate that error information is reported.
Referring to Fig. 6, Fig. 6 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.The terminal 500 can be
The equipment such as smart mobile phone (such as Android phone, IOS mobile phones), tablet personal computer or Intelligent worn device, specific limit is not done herein
System.
The terminal 500 can include one or processor 510, one or more meters of more than one processing core
Memory 520, communication unit 530, power supply 540, input equipment 550 and output equipment 560 of calculation machine readable storage medium storing program for executing etc.
Part, wherein, processor 510, memory 520, communication unit 530, power supply 540, input equipment 550 and output equipment 560 are logical
Bus 570 is crossed to be connected with each other.
Wherein, the processor 510 is used to run the program code being stored in memory 520, to implement function such as:
When detecting application program and reporting an error, the error information of the application program is obtained;Judge whether the network of terminal meets default
Condition;If the network of the terminal meets the preparatory condition, the error information is reported;If the network of the terminal is unsatisfactory for
The preparatory condition, delay reports the error information.
In one embodiment, processor 510 specifically performs following program when execution delay reports the error information:
The error information is preserved, and monitors whether the network of the terminal switches;If the network of the terminal switches, sentence
Whether the network after disconnected switching meets the preparatory condition;If the network after the switching is met in the preparatory condition, execution
The step of reporting the error information.
Further, in one embodiment, processor 510 performs as follows before execution reports the error information, also
Program:Obtain the communication requirement amount of the network after the switching;According to the communication requirement amount, the network after the switching is judged
Whether idle condition is in;If the network after the switching is in idle condition, the error information is reported.
In one embodiment, processor 510 is specific to perform when execution judges whether the network of terminal meets preparatory condition
Following program:Judge whether the network of terminal is in stable state;If the network of the terminal is in stable state, judge described
The network of terminal meets preparatory condition.
In one embodiment, processor 510 is specific to perform when execution judges whether the network of terminal meets preparatory condition
Following program:Whether the network for judging terminal is WLAN;If the network of the terminal is WLAN, judge described
The network of terminal meets preparatory condition.
Further, in one embodiment, processor 510 judges whether the network of the terminal is wireless local in execution
After net, following program is also performed:If the network of the terminal is not WLAN, judge that the file of the error information is big
It is small whether to exceed predetermined threshold value;If the file size of the error information exceedes predetermined threshold value, the network of the terminal is judged not
Meet preparatory condition.
In one embodiment, processor 510 performs as follows after the error information for obtaining the application program is performed, also
Program:Based on the error information, acquisition reports trigger event to the error information.Correspondingly, processor 510 is being performed
When judging whether the network of terminal meets preparatory condition, following program is specifically performed:Trigger event is reported to judge eventually according to described
Whether the network at end meets preparatory condition.
It should be appreciated that in embodiments of the present invention, processor 510 can be CPU (Central
Processing Unit, CPU), the processor 510 can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices
Part, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or
The processor can also be any conventional processor etc..
Memory 520 can include read-only storage and random access memory, and provide program code to processor 510
And data.The a part of of memory 520 can also include nonvolatile RAM.For example, memory 520 can be with
The information of storage device type.
Communication unit 530 can be used for during receiving and sending messages, the reception and transmission of signal, and especially, communication unit 530 connects
Receive the signal that client is sent, and signal is transferred to one or more than one processor 510 is handled.Meanwhile, communication unit 530
The feedback signal that processor 510 is sent is sent to client.
Power supply 540 (such as battery), it is preferred that power supply 540 can pass through power-supply management system and the logic phase of processor 510
Even, so as to realize the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 540 can also include
One or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or inversion
The random components such as device, power supply status indicator.
Input equipment 550 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint
Directional information), microphone etc..
Output equipment 560, available for the information that is inputted by user of display or is supplied to the information and terminal 500 of user
Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.
Output equipment 560 may include display panel, optionally, can use liquid crystal display (LCD, Liquid Crystal
Display), the form such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configures display surface
Plate.
In the specific implementation, processor 510, input equipment 550, the output equipment 560 described in the embodiment of the present invention can
The implementation described in above-mentioned any one embodiment for error information report method is performed, the present invention is also can perform
The implementation of terminal described by embodiment, will not be repeated here.
It will be understood by those skilled in the art that the restriction of the structure of terminal 500 shown in Fig. 6 not structure paired terminal 500,
It can include than illustrating more or less parts, either combine some parts or different parts arrangement.
A kind of computer-readable recording medium is provided in another embodiment of the invention, the computer-readable recording medium
Be stored with computer program, and wherein computer program includes programmed instruction.The programmed instruction is realized when being executed by processor:Work as inspection
When measuring application program and reporting an error, the error information of the application program is obtained;Judge whether the network of terminal meets preparatory condition;
If the network of the terminal meets the preparatory condition, the error information is reported;If the network of the terminal is unsatisfactory for described
Preparatory condition, delay reports the error information.
In one embodiment, implemented when the programmed instruction is executed by processor:The error information is preserved, and is monitored
Whether the network of the terminal switches;If the network of the terminal switches, judge whether the network after switching meets
The preparatory condition;If the network after the switching meets the preparatory condition, the error information is reported.
Further, in one embodiment, implemented when the programmed instruction is executed by processor:Obtain after the switching
Network communication requirement amount;According to the communication requirement amount, judge whether the network after the switching is in idle condition;If
Network after the switching is in idle condition, reports the error information.
In one embodiment, implemented when the programmed instruction is executed by processor:Judge whether the network of terminal is in
Stable state;If the network of the terminal is in stable state, judge that the network of the terminal meets preparatory condition.
In one embodiment, implemented when the programmed instruction is executed by processor:Whether the network for judging terminal is nothing
Line LAN;If the network of the terminal is WLAN, judge that the network of the terminal meets preparatory condition.
Further, in one embodiment, implemented when the programmed instruction is executed by processor:If the net of the terminal
Network is not WLAN, judges whether the file size of the error information exceedes predetermined threshold value;If the error information
File size exceedes predetermined threshold value, judges that the network of the terminal is unsatisfactory for preparatory condition.
In one embodiment, implemented when the programmed instruction is executed by processor:Based on the error information, acquisition pair
The error information reports trigger event;Further, implemented when the programmed instruction is executed by processor:According to described
Trigger event is reported to judge whether the network of terminal meets preparatory condition.
The computer-readable recording medium can be the internal storage unit of the terminal in foregoing any embodiment, for example eventually
The hard disk or internal memory at end.The computer-readable recording medium can also be equipped with the External memory equipment of terminal, such as terminal
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card,
Flash card (Flash Card) etc..
Further, the computer-readable recording medium can also both include the internal storage unit of terminal or including outside
Storage device.The computer-readable recording medium is used to store other programs and data needed for computer program and terminal.
The computer-readable recording medium can be also used for temporarily storing the data that has exported or will export.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially
Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience of description and succinctly, the end of foregoing description
End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
, can be by it in several embodiments provided herein, it should be understood that disclosed terminal and method
Its mode is realized.For example, terminal embodiment described above is only schematical.For example, the division of unit, only
Only a kind of division of logic function, can there is other dividing mode when actually realizing.Such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.
In addition, shown or discussed coupling or direct-coupling or communication connection each other can be connect by some
Mouthful, device or the INDIRECT COUPLING of unit or communication connection or electricity, mechanical or other forms are connected.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.This hair
Unit in bright embodiment terminal can be combined, divided and deleted according to actual needs.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit realized using in the form of SFU software functional unit and as independent production marketing or in use,
It can be stored in a computer read/write memory medium.Based on it is such understand, technical scheme substantially or
Person says the part contributed to prior art, or the technical scheme all or part can in the form of software product body
Reveal and, the computer software product is stored in a storage medium, including some instructions are to cause a computer to set
Standby (can be personal computer, terminal, or network equipment etc.) perform each embodiment methods described of the invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory),
Random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with store program codes
Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain be defined.
Claims (10)
1. a kind of error information report method, it is characterised in that including:
When detecting application program and reporting an error, the error information of the application program is obtained;
Judge whether the network of terminal meets preparatory condition;
If the network of the terminal meets the preparatory condition, the error information is reported;
If the network of the terminal is unsatisfactory for the preparatory condition, delay reports the error information.
2. error information report method according to claim 1, it is characterised in that the delay reports the letter that reports an error
Breath, including:
The error information is preserved, and monitors whether the network of the terminal switches;
If the network of the terminal switches, judge whether the network after switching meets the preparatory condition;
If the network after the switching meets the preparatory condition, the error information is reported.
3. error information report method according to claim 2, it is characterised in that it is described report the error information it
Before, in addition to:
Obtain the communication requirement amount of the network after the switching;
According to the communication requirement amount, judge whether the network after the switching is in idle condition;
If network after the switching is in idle condition, perform described in the step of report the error information.
4. error information report method according to claim 1, it is characterised in that whether the network for judging terminal is full
Sufficient preparatory condition, including:
Judge whether the network of terminal is in stable state;
If the network of the terminal is in stable state, judge that the network of the terminal meets preparatory condition.
5. error information report method according to claim 1, it is characterised in that whether the network for judging terminal is full
Sufficient preparatory condition, including:
Whether the network for judging terminal is WLAN;
If the network of the terminal is WLAN, judge that the network of the terminal meets preparatory condition.
6. error information report method according to claim 5, it is characterised in that in the network for judging the terminal
After whether being WLAN, in addition to:
If the network of the terminal is not WLAN, judge whether the file size of the error information exceedes default threshold
Value;
If the file size of the error information exceedes predetermined threshold value, judge that the network of the terminal is unsatisfactory for preparatory condition.
7. error information report method according to claim 1, it is characterised in that the report of the acquisition application program
After wrong information, in addition to:
Based on the error information, acquisition reports trigger event to the error information;
Whether the network for judging terminal meets preparatory condition, including:According to the net for reporting trigger event to judge terminal
Whether network meets preparatory condition.
8. a kind of terminal, it is characterised in that including:
Information acquisition unit, for when detecting application program and reporting an error, obtaining the error information of the application program;
Judging unit, for judging whether the network of terminal meets preparatory condition;
Reporting unit, if the network for the terminal meets the preparatory condition, reports the error information;
Postpone reporting unit, if the network for the terminal is unsatisfactory for the preparatory condition, delay reports the error information.
It is the processor, defeated 9. a kind of terminal, it is characterised in that including processor, input equipment, output equipment and memory
Enter equipment, output equipment and memory to be connected with each other, wherein, the memory is used for store program codes, the processor quilt
It is configured to call described program code, performs the error information report method as described in claim any one of 1-7.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable storage medium is stored with computer program,
The computer program includes programmed instruction, and described program instruction makes the computing device such as right when being executed by a processor
It is required that the error information report method described in any one of 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710458830.2A CN107302769A (en) | 2017-06-16 | 2017-06-16 | A kind of error information report method, terminal and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710458830.2A CN107302769A (en) | 2017-06-16 | 2017-06-16 | A kind of error information report method, terminal and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107302769A true CN107302769A (en) | 2017-10-27 |
Family
ID=60136283
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710458830.2A Withdrawn CN107302769A (en) | 2017-06-16 | 2017-06-16 | A kind of error information report method, terminal and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107302769A (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106789153A (en) * | 2016-11-09 | 2017-05-31 | 苏州数言信息技术有限公司 | The log recording of self adaptation by all kinds of means of Internet of things system terminal device, output intent and system |
-
2017
- 2017-06-16 CN CN201710458830.2A patent/CN107302769A/en not_active Withdrawn
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106789153A (en) * | 2016-11-09 | 2017-05-31 | 苏州数言信息技术有限公司 | The log recording of self adaptation by all kinds of means of Internet of things system terminal device, output intent and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10505381B2 (en) | Electric energy dispatch method and apparatus, and power management method and apparatus | |
CN104137473B (en) | POE method, device, equipment and system | |
CN108599304A (en) | Charging box, charge control method and Related product | |
CN106339058A (en) | Dynamic power supply management method and system | |
CN104765466B (en) | The key control method and device of mobile terminal | |
CN110381130A (en) | The long connection method of keep-alive, device, communication terminal and storage medium | |
CN104980399A (en) | File transfer method, client and proxy server | |
CN107484190B (en) | Method for connecting network, mobile terminal and computer readable storage medium | |
CN104967537A (en) | Alarm information pushing method and device | |
CN103501391B (en) | A kind of method and system managing user's brush machine behavior | |
CN103902011A (en) | Electronic device controlling method and electronic device | |
CN108712559A (en) | A kind of disturbance-free method, system and terminal device | |
CN109271273A (en) | A kind of method, abnormal restoring equipment and storage medium that communication abnormality restores | |
CN107197493B (en) | A kind of method for switching network, network switching device and intelligent terminal | |
CN107547301A (en) | A kind of master/slave device switching method and device | |
CN106707194B (en) | Rechargeable battery detection method and electronic equipment | |
US9132550B2 (en) | Apparatus and method for managing robot components | |
CN106817489B (en) | The reminding method and mobile terminal of message | |
CN107783633A (en) | A kind of method, terminal and computer-readable recording medium for managing application program | |
CN104683215A (en) | Communication method and device of instant communication tool | |
CN108958980A (en) | Prevent method, electronic device and the computer readable storage medium of Activity life cycle exception | |
CN104462905A (en) | Data processing method and device of operating systems and terminal | |
CN107302769A (en) | A kind of error information report method, terminal and computer-readable recording medium | |
CN105141774A (en) | Method and mobile terminal for solving problem of unavailable starting due to corrosion of side key | |
CN109359011A (en) | A kind of Caton monitoring method, device and the terminal device of android system |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20171027 |
|
WW01 | Invention patent application withdrawn after publication |