# SalomonBrys/ANR-WatchDog

A simple watchdog that detects Android ANR (Application Not Responding) error and throws a meaningful exception

Repository: https://github.com/SalomonBrys/ANR-WatchDog
Canonical: https://ross.abutalabs.com/products/anr-watchdog
Language: Java
License: MIT
License Family: permissive
Last push: 2022-03-11T12:23:25+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4786, "days_push": 1636, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2979, forks 413 (observed 2026-08-28T04:07:33.087314+00:00)

## What it is
ANR-WatchDog is an Android library that detects Application Not Responding (ANR) errors by watching the UI thread and throwing a meaningful ANRError with all thread stack traces. It integrates with crash reporters like ACRA, Crashlytics, and Bugsnag so ANRs can be reported like any other crash.

## Use cases
- detect android anr errors in my app
- report anr crashes to crashlytics or acra
- get stack traces when the ui thread hangs
- debug app not responding errors outside the play store
- monitor main thread responsiveness in production
- catch anr exceptions with a crash handler

## When to choose
- you need to catch and report Android ANRs to your own crash reporting service
- your app is not distributed via the Play Store and you cannot access /data/anr/traces.txt
- you want detailed stack traces of all threads when the UI thread stalls

## When to avoid
- you only need Play vitals ANR reporting and have no custom crash pipeline
- you need actively developed alternatives with newer Android API coverage
- your project is not an Android application

## Facets
- artifact type: library
- maturity: maintenance
- function: monitoring, error-handling, testing
- domain: mobile-development, developer-tools, monitoring
- platform: -
- tags: android, anr, watchdog, crash-reporting, ui-thread, java

## Member repositories
- SalomonBrys/ANR-WatchDog (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:33.087314+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:31:31.175078+00:00, confidence not recorded.
  - readme: https://github.com/SalomonBrys/ANR-WatchDog (fetched 2026-08-28T04:07:33.087314+00:00, sha f7ddf5856758)
- Data as of 2026-08-30T08:39:29.467469+00:00.
