Tagged articles
3 articles
Page 1 of 1
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
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
Top Architect
Top Architect
Feb 25, 2021 · Mobile Development

Why Android Activity onStop/onDestroy Is Delayed by 10 Seconds When an Infinite Animation Is Running

The article explains that an infinite View animation continuously posts invalidate messages to the MessageQueue, preventing the idle handler from running and causing the Activity's onStop and onDestroy callbacks, scheduled with a 10‑second idle timeout, to be delayed until the queue becomes idle.

ActivityLifecycleAndroidIdleHandler
0 likes · 28 min read
Why Android Activity onStop/onDestroy Is Delayed by 10 Seconds When an Infinite Animation Is Running