我刚刚遇到ANR(活动无响应)问题。我解决了想法,但ANR突然在我脑海中引发了一个问题......
何时发生ANR?
Reason: When your activity allocates lot of memory in background or UI is
blocked more than 5 seconds.
谁显示警报对话框?
Our activity is a main thread and Main thread can update/manipulate any UI
elements. Showing Dialog is kind of change in UI.
我的问题是
谁在显示ANR警报对话框?
任何人都可以解释一下吗?
现在我的问题是,如果ANR错误告诉我们主线程是否被阻止,那么操作系统如何在我们的Activity上显示ANR Alert对话框?