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.
ActivityLifecycleIdleHandlerMessageQueue
0 likes · 28 min read