Tagged articles
ANR
34 articles · Page 1 of 1
This article explains Android ANR (Application Not Responding) fundamentals, detailing its four types, underlying causes such as main‑thread blocking and deadlocks, the system’s timeout mechanisms, step‑by‑step analysis workflow, trace interpretation, and practical best‑practice tips to prevent and resolve ANR problems.
ANRAndroidDebugging
0 likes · 15 min read

This article explains the Android 8.1+ restriction that prevents background apps from using startService, details the internal flow that leads to a Not allowed to start service crash, shows how startForegroundService works with a mandatory foreground notification timeout, and provides code‑level analysis of the ANR and crash “bombs”, UID idle handling, and practical mitigation strategies.
ANRAndroidService
0 likes · 41 min read

Android ANR occurs when the UI thread is blocked, triggered by time‑outs such as KeyDispatch, Broadcast, Service or ContentProvider, often caused by long I/O, deadlocks, Binder calls or resource exhaustion; diagnosing involves examining traces.txt, thread states, CPU/memory metrics, and using tools like Looper logs, Choreographer, or Tencent Matrix to prevent future freezes.
ANRAndroidCPU
0 likes · 26 min read

This article explores Android's ActivityThread class, detailing its role as the bridge between system and app processes, the initialization flow via main(), the use of ContentProvider for SDK startup, activity rendering triggers, and how SharedPreferences can cause ANR through QueuedWork.waitToFinish().
ANRActivityThreadAndroid
0 likes · 8 min read

Baidu dramatically accelerated its Android app’s launch by dissecting the cold‑start sequence, applying full‑path analysis, leveraging tracing tools, introducing a priority‑aware task‑scheduling framework, replacing SharedPreferences with the binary UniKV store, eliminating lock contention, and tightening thread, I/O, and library loading, which together cut ANR rates and boosted user retention.
ANRAndroidKV storage
0 likes · 24 min read

This article explains how the ANRCanary tool helps DingTalk developers identify and resolve various Android ANR scenarios—ranging from main‑thread tasks and synchronization blocks to message‑queue congestion, emoji handling, and cross‑process SharedPreferences—while sharing practical best‑practice guidelines for building reliable mobile performance tools.
ANRAndroidtooling
0 likes · 32 min read

The article explains how to monitor, locate, and remediate Android ANRs by installing a LooperPrinter‑based timeout detector, extending coverage to IdleHandler and touch events, dumping and aggregating main‑thread stacks via Firebase Crashlytics, and showcases real‑world fixes that cut online ANRs by 73.8%.
ANRAndroidFirebase Crashlytics
0 likes · 11 min read

This comprehensive article explains what Android ANR (Application Not Responding) is, details its various causes and trigger scenarios, walks through the internal service‑side workflow, and presents practical monitoring solutions—including a watchdog thread and SIGQUIT signal interception—along with code samples, trace analysis methods, and mitigation strategies for developers.
ANRAndroidDebugging
0 likes · 48 min read

This article explains how ANRCanary attributes Android ANR problems by analyzing thread deadlocks, barrier message leaks, aggregation signatures, and key‑function extraction, providing developers with concrete detection algorithms and practical examples to resolve high‑impact ANRs.
ANRAndroidBarrier Leak
0 likes · 16 min read

This article introduces DingTalk’s self‑built ANRCanary, explains the complete Android ANR lifecycle, details how it captures and aggregates main‑thread tasks, filters false positives, and provides concrete code‑level insights to help mobile developers pinpoint and resolve ANR issues efficiently.
ANRAndroidDingTalk
0 likes · 17 min read

The article explains how Android UI jank and ANR stem from the Looper‑MessageQueue, and introduces MDAP’s LooperMonitor—a low‑overhead tool that records each message’s target, timing and stack, aggregates data across multiple loopers, visualizes it, and enables developers to quickly pinpoint and resolve the exact cause of stalls.
ANRAndroidLooperMonitor
0 likes · 32 min read

The article dissects Android black-screen and freeze problems by explaining the VSync/Choreographer rendering pipeline, ANR timeout rules, System Server Watchdog monitoring, Handler‑Looper messaging, input event flow, and Window Management Service focus handling, offering developers systematic debugging techniques for these UI stalls.
ANRAndroidBlack Screen
0 likes · 13 min read

This article explains the causes of Android ANR, details the input dispatching mechanism, presents key code paths in InputDispatcher, and provides a step‑by‑step analysis workflow—including system‑level factors, stack inspection, Binder problems, and memory‑related pitfalls—to help developers diagnose and resolve most ANR cases.
ANRAndroidBinder
0 likes · 25 min read

This article explains the definitions, causes, and monitoring strategies for iOS app freezes and lags, describes the Heimdallr solution based on Runloop event callbacks, discusses ANR and WatchDog handling, and presents practical optimizations and lessons learned for reliable performance monitoring.
ANRHeimdallrRunLoop
0 likes · 13 min read

This article explains how Android captures ANR events by intercepting the SIGQUIT signal, covering the relevant signal‑handling functions (kill, signal, sigaction, sigwait, pthread_sigmask), their differences, the SignalCatcher thread implementation, and how developers can create custom SIGQUIT monitors for ANR analysis.
ANRAndroidC++
0 likes · 15 min read

The DeWu ANR Monitoring Platform replaces Bugly with a comprehensive internal system that collects ProcessErrorStateInfo, tombstone files, main‑thread stack samples, Looper message histories, and app state, parses and aggregates this data, visualizes trends and root‑cause details, and guides developers in mitigating ANRs.
ANRAndroidLooper
0 likes · 15 min read

This article explains why a specially crafted Unicode string triggers an Android ANR by dissecting the Unicode line‑breaking (UAX #14) and bidirectional (UAX #9) algorithms, showing how runs ending with double zeros lead to an infinite loop in TextLine.getOffsetToLeftRightOf.
ANRAndroidBidi
0 likes · 16 min read

The article explains that Android ANR (Application Not Responding) arises when the UI thread is blocked beyond defined timeouts, classifies the various timeout types, details common root causes such as slow I/O, heavy computation, binder delays, deadlocks, CPU or memory pressure, and outlines a systematic log‑and‑systrace analysis process to pinpoint and resolve these issues.
ANRAndroidperformance
0 likes · 8 min read

This article investigates an Android ANR triggered by a while‑true loop in TextView's getOffsetForHorizontal, reproduces the issue on Pixel 2, explains how to extract trace files, compares Android Studio debugging with Frida dynamic hooking, and provides step‑by‑step instructions to reproduce and debug the bug.
ANRAndroidDebugging
0 likes · 11 min read

This article continues the investigation of a mysterious string that triggers Android app freezes, explaining Unicode line‑breaking and bidirectional algorithms, how runs end with double zeros, how to craft a reproducing string, and practical ways to avoid the resulting ANR.
ANRAndroidBidi
0 likes · 18 min read

This article presents Sliver, an Android‑focused method‑trace framework that combines low‑overhead stack sampling, thread‑suspend techniques, and lock‑information capture to reliably detect and diagnose ANR and jank issues in production environments while maintaining minimal performance impact.
ANRAndroidMethodTrace
0 likes · 23 min read

This article explains how Xianyu identifies, monitors, and resolves Android ANR issues by analyzing root causes, implementing SIGQUIT‑based detection, inspecting thread stacks, and applying concrete optimizations such as SharedPreferences replacement, network broadcast caching, and delayed component registration, ultimately cutting ANR rates by more than half.
ANRAndroidmobile development
0 likes · 11 min read

This article explains the Android ANR workflow, analyzes the system's appNotResponding logic, and presents a robust monitoring strategy that captures SIGQUIT signals, validates true ANR events, and hooks trace writes to reliably detect and diagnose ANRs in mobile apps.
ANRAndroidPerformance Monitoring
0 likes · 22 min read

This article explains the relationship between UI stutter and ANR, critiques common monitoring tools, and presents three robust Android lag‑detection methods—WatchDog polling, Looper Printer replacement, and specialized handlers for IdleHandler, TouchEvent, and SyncBarrier leaks—complete with probability analysis and sample code.
ANRAndroidIdleHandler
0 likes · 17 min read

The article offers a thorough guide to Android ANR analysis, detailing generation mechanisms, timeout thresholds, log examination techniques, and case studies of common causes such as idle main threads, long operations, lock contention, CPU preemption, memory pressure, and system‑service timeouts, providing practical diagnostic examples.
ANRAndroidCPU analysis
0 likes · 16 min read

This article explains Android's Handler and Looper mechanism, shows why creating a Handler in a non‑Looper thread triggers a RuntimeException, and walks through the relevant source code—including Handler constructors, Looper.myLooper(), ThreadLocal operations, and the required Looper.prepare() call.
ANRAndroidConcurrency
0 likes · 10 min read

This article shares practical experiences from developing the Shenghai crash monitoring SDK for Android, covering Java exception capture, stack trace collection, processing, real‑time reporting, crash metrics, and ANR detection using FileObserver and WatchDog mechanisms.
ANRAndroidCrash Monitoring
0 likes · 11 min read

This article explains how to capture Android device logs using adb commands, export them, combine with monkey testing, and then analyze logcat output—including ring buffers, priority levels, and common crash or ANR patterns—to efficiently locate and resolve issues.
ANRDebuggingcrash analysis
0 likes · 6 min read

This article explains the causes and trigger conditions of Android ANR, describes the underlying message‑driven mechanism, and compares four popular detection approaches—BlockCanary, ANR‑WatchDog, SafeLooper, and FileObserver—highlighting their advantages, limitations, and practical usage recommendations.
ANRANR-WatchDogAndroid
0 likes · 7 min read

This article explains the Android ANR mechanism, common scenarios that trigger it, how the system detects and logs ANR events, and provides step‑by‑step methods for locating and fixing ANR issues, illustrated with a recent WeChat bug example.
ANRAndroidDebugging
0 likes · 8 min read

This article explains Android performance testing challenges, details ANR causes and types, describes tools like TraceView and ANR‑WatchDog, and introduces VSync‑based smoothness metrics using Choreographer to detect frame skips and improve app responsiveness.
ANRAndroidSmoothness
0 likes · 13 min read

This article explains what ANR is, outlines its three trigger conditions, describes the system's ANR execution flow, compares FileObserver and WatchDog monitoring techniques, shows how to analyze ANR logs and main‑thread stack traces, and provides practical guidelines to avoid ANR in Android applications.
ANRAndroidFileObserver
0 likes · 9 min read

This article explains what ANR is, why it harms user experience, typical scenarios that cause it, how to locate ANR issues via logs, and provides step‑by‑step guidance for integrating an ANR detection tool into Android applications such as Baidu Browser.
ANRAndroidmobile development
0 likes · 8 min read

This article explains what Android ANR (Application Not Responding) is, outlines typical scenarios that cause it, describes how to locate ANR issues via logs and traces, and details the integration and usage of an ANR detection tool to automatically capture diagnostic data for debugging.
ANRAndroidmobile development
0 likes · 9 min read
