Method and device for detecting application program

An application and program technology, applied in the computer field, can solve the problems that ANR cannot be restored and repaired, and the process stack information cannot be obtained in real time.

Active Publication Date: 2019-07-02
APOLLO INTELLIGENT CONNECTIVITY (BEIJING) TECH CO LTD
View PDF11 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Usually, developers cannot obtain the process stack information of ANR in real time, so some ANR cannot be restored and repaired

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
  • Method and device for detecting application program
  • Method and device for detecting application program
  • Method and device for detecting application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0028] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0029] figure 1 An exemplary system architecture 100 is shown to which embodiments of the method for detecting an application or the apparatus for detecting an application of the present application can be applied.

[0030] Such as figure 1 As shown, the system architectur...

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 embodiment of the invention discloses a method and device for detecting an application program. A specific embodiment of the method comprises the following steps: executing a blockage detection step: recording a name and a value of a preset identifier, and sending a message with the name of the preset identifier to a main thread, the value of the preset identifier being modified by the main thread; determining whether the value of the preset identifier is changed or not after a preset time interval; and if not, determining that the main thread is blocked. According to the embodiment, the ANR can be detected, and positioning and analysis of ANR problems are facilitated.

Description

technical field [0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method and device for detecting application programs. Background technique [0002] ANR stands for Application Not Responding, also known as application not responding. [0003] For example, in the Android (Android) system, some events need to be completed within a certain period of time. If an effective response is not obtained beyond the predetermined period of time or the response time is too long, ANR will be caused. If the main thread is blocked for more than the preset time due to some time-consuming operations, the system will display an ANR dialog box to remind the user that the corresponding application is in an unresponsive state. [0004] When an ANR occurs, the system will store the process stack information of the application in a local file (for example, the traces.txt file in the " / data / anr / " directory). Usually, developers can...

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/36G06F11/30G06F9/54
CPCG06F11/3612G06F9/546G06F11/302
Inventor 尹健刚李明德宋晔
Owner APOLLO INTELLIGENT CONNECTIVITY (BEIJING) 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