Handling method and device for abnormal information

A technology of exception information and exception handling, applied in software testing/debugging and other directions, which can solve problems such as low efficiency

Active Publication Date: 2015-04-08
BEIJING GRIDSUM TECH CO LTD
View PDF5 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a method and device for processing abnormal information to solve the problem of low efficiency in solving abnormal problems caused by sending abnormal information to all development subjects when an abnormality occurs in an Android application program in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Handling method and device for abnormal information
  • Handling method and device for abnormal information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0016] The embodiment of the present invention provides a method for processing abnormal information. The method includes steps as follows:

[0017] Step S12, collect exception information that occurs during the running of the application program, wherein the application program runs on the Android system, and a processing class for unhandled exceptions is registered in the thread of the application program.

[0018] What needs to be explained here is that, in a preferred embodiment, this solution can be applied to the scenario of an application program running on the Android operating system. Specifically, during the running of the application program on the Android operating system, the Handle exception handlers and register unhandled exception handlers to application threads. Optionally, you can use the Android API to register the global unhandled exception handling class. Part of the implementation code is as follows:

[0019] Thread.setDefaultUncaughtExceptionHandler(Cr...

Embodiment 2

[0095] The collection module 22 is used to collect exception information that occurs during the running of the application program, wherein the application program runs on the Android system, and a processing class for unhandled exceptions is registered in the thread of the application program.

[0096] What needs to be explained here is that, in a preferred embodiment, this solution can be applied to applications running on the Android operating system. Specifically, during the running of the application program on the Android operating system, the unhandled exception can be called , and register the unhandled exception handler class in the application thread. Optionally, you can use the Android API to register the global unhandled exception handling class. Part of the implementation code is as follows:

[0097] Thread.setDefaultUncaughtExceptionHandler(CrashHandler);

[0098] Specifically, in this solution, the thread will actively call the uncaughtException function of Cra...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses handling method and device for abnormal information. The method comprises the steps of acquiring abnormal information occurring in the operation of an application program, wherein the application program is operated through an Android system, and non-handled abnormal handling classes are registered in a thread of the application program; distributing the abnormal information occurring in the operation of the application program to a plurality of matching handling modules through the non-handled abnormal handling classes according to a distribution record, wherein abnormal mode information of corresponding programming use are preliminarily defined through the plurality of matching handling modules; sending the abnormal information to the corresponding abnormal information to handle on the premise that the abnormal information is consistent with the abnormal mode information in any one of the matching handling modules. With the adoption of the method and device, the problem of low abnormality handling efficiency caused by distributing the abnormal information to all developing bodies in case of abnormality in the Android application program in the prior art can be solved.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a method and device for processing abnormal information. Background technique [0002] In the development process of an application program (APP), APP developers will use a software development kit (SDK). For example, when developing an Android APP, the SDK developer will provide the Android SDK to the APP developer to use, thereby completing the Android APP development. Android APP occasionally crashes unexpectedly during the running process, that is, an exception occurs, so developers need to analyze and solve the above abnormal problems. [0003] What needs to be explained here is that when an exception occurs in an Android APP, it is impossible to distinguish whether the above abnormality originates from the software development kit (SDK) or the APP itself. APP developers, and SDK developers and APP developers need to analyze the above abnormal information at the same time ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 王杰
Owner BEIJING GRIDSUM TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products