简体   繁体   中英

What is the UI Response Time Limit in Android?

i new in android developer, i want to know the UI response time limit in android, if any one know then please tell me.

Thanks you.

根据参考页面( http://developer.android.com/training/articles/perf-anr.html ),获得ANR(应用程序无响应)前5秒

如果按响应时间限制,您的意思是,Android操作系统确定应用程序未运行之前的最长时间,那么:5秒!

According to android developer forum:-

 - 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

Generally it happened when our application performing long running task in UI thread then android OS showing below popup :-

在此输入图像描述

https://developer.android.com/topic/performance/vitals/anr.html

https://developer.android.com/training/articles/perf-anr.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM