Tagged articles
34 articles
Page 1 of 1
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jul 5, 2024 · Mobile Development

Understanding and Analyzing Android ANR (Application Not Responding) Issues

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
Understanding and Analyzing Android ANR (Application Not Responding) Issues
Ximalaya Technology Team
Ximalaya Technology Team
Aug 12, 2023 · Mobile Development

Why Android 8+ Blocks startService in Background and How startForegroundService Avoids Crashes

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.

ANRAndroidCrash
0 likes · 41 min read
Why Android 8+ Blocks startService in Background and How startForegroundService Avoids Crashes
37 Interactive Technology Team
37 Interactive Technology Team
Aug 7, 2023 · Mobile Development

Understanding and Analyzing Android ANR (Application Not Responding)

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
Understanding and Analyzing Android ANR (Application Not Responding)
Baidu App Technology
Baidu App Technology
Jul 5, 2023 · Mobile Development

Baidu App Android Startup Performance Optimization: Theory, Tools, and Practical Implementations

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
Baidu App Android Startup Performance Optimization: Theory, Tools, and Practical Implementations
Alibaba Terminal Technology
Alibaba Terminal Technology
Feb 15, 2023 · Mobile Development

How ANRCanary Uncovers Hidden Android ANR Causes and Boosts App Performance

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
How ANRCanary Uncovers Hidden Android ANR Causes and Boosts App Performance
NetEase Yanxuan Technology Product Team
NetEase Yanxuan Technology Product Team
Feb 13, 2023 · Mobile Development

Android ANR Monitoring, Diagnosis and Governance Practice

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
Android ANR Monitoring, Diagnosis and Governance Practice
Sohu Tech Products
Sohu Tech Products
Jan 11, 2023 · Mobile Development

Understanding Android ANR: Causes, Trigger Process, Monitoring Techniques, and Analysis

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
Understanding Android ANR: Causes, Trigger Process, Monitoring Techniques, and Analysis
Shopee Tech Team
Shopee Tech Team
Apr 21, 2022 · Mobile Development

Understanding and Solving Android UI Jank and ANR with MDAP LooperMonitor

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
Understanding and Solving Android UI Jank and ANR with MDAP LooperMonitor
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Apr 1, 2022 · Mobile Development

Android Black Screen/Freeze Issue Analysis: System Mechanisms and Debugging Techniques

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
Android Black Screen/Freeze Issue Analysis: System Mechanisms and Debugging Techniques
Coolpad Technology Team
Coolpad Technology Team
Mar 24, 2022 · Mobile Development

Understanding and Analyzing Android ANR (Application Not Responding) Issues

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
Understanding and Analyzing Android ANR (Application Not Responding) Issues
Alibaba Terminal Technology
Alibaba Terminal Technology
Oct 11, 2021 · Mobile Development

How Android Handles ANR SIGQUIT: Signal Interception Explained

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
How Android Handles ANR SIGQUIT: Signal Interception Explained
DeWu Technology
DeWu Technology
Sep 17, 2021 · Mobile Development

Design of the DeWu App ANR Monitoring Platform

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
Design of the DeWu App ANR Monitoring Platform
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Aug 27, 2021 · Mobile Development

Analysis of Android ANR (Application Not Responding) Causes and Diagnosis

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
Analysis of Android ANR (Application Not Responding) Causes and Diagnosis
Kuaishou Tech
Kuaishou Tech
Aug 20, 2021 · Mobile Development

Analyzing Android TextView ANR Caused by getOffsetForHorizontal Loop Using Frida

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
Analyzing Android TextView ANR Caused by getOffsetForHorizontal Loop Using Frida
Xianyu Technology
Xianyu Technology
Jul 29, 2021 · Mobile Development

How Xianyu Tackles Android ANR: Monitoring, Diagnosis, and Optimization Strategies

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
How Xianyu Tackles Android ANR: Monitoring, Diagnosis, and Optimization Strategies
WeChat Client Technology Team
WeChat Client Technology Team
Jul 19, 2021 · Mobile Development

How to Build a Complete ANR Monitoring Solution on Android

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
How to Build a Complete ANR Monitoring Solution on Android
WeChat Client Technology Team
WeChat Client Technology Team
Jul 13, 2021 · Mobile Development

How to Accurately Detect UI Lag and ANR on Android: Advanced Monitoring Techniques

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
How to Accurately Detect UI Lag and ANR on Android: Advanced Monitoring Techniques
vivo Internet Technology
vivo Internet Technology
May 31, 2021 · Mobile Development

Android ANR Analysis: Techniques and Case Studies

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
Android ANR Analysis: Techniques and Case Studies
AI Code to Success
AI Code to Success
Jan 11, 2020 · Mobile Development

Why Does Creating a Handler in a Background Thread Throw an Exception?

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.

ANRAndroidHandler
0 likes · 10 min read
Why Does Creating a Handler in a Background Thread Throw an Exception?
360 Quality & Efficiency
360 Quality & Efficiency
Mar 19, 2019 · Mobile Development

Retrieving and Analyzing Android Logs for Bug Diagnosis

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
Retrieving and Analyzing Android Logs for Bug Diagnosis
360 Quality & Efficiency
360 Quality & Efficiency
Feb 2, 2018 · Mobile Development

Understanding Android ANR (Application Not Responding) and a Comparative Review of Monitoring Solutions

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
Understanding Android ANR (Application Not Responding) and a Comparative Review of Monitoring Solutions
Qunar Tech Salon
Qunar Tech Salon
Aug 31, 2016 · Mobile Development

Understanding ANR (Application Not Responding) in Android: Triggers, Monitoring Mechanisms, and Prevention Strategies

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
Understanding ANR (Application Not Responding) in Android: Triggers, Monitoring Mechanisms, and Prevention Strategies