我是一名新的Android开发者,我想知道Android中的UI响应时间限制。如果有人知道,请告诉我。谢谢。
- No response to an input event (such as key press or screen touch
events) within 5 seconds.
- A BroadcastReceiver hasn't finished executing within 10 seconds
通常情况下,当我们的应用在UI线程中执行长时间运行的任务时,安卓操作系统会显示以下弹窗:
https://developer.android.com/topic/performance/vitals/anr.html
https://developer.android.com/training/articles/perf-anr.html