簡體   English   中英

Android中的UI響應時間限制是多少?

[英]What is the UI Response Time Limit in Android?

我是Android開發人員的新手,我想知道android中的UI響應時間限制,如果有人知道那么請告訴我。

謝謝。

根據參考頁面( http://developer.android.com/training/articles/perf-anr.html ),獲得ANR(應用程序無響應)前5秒

如果按響應時間限制,您的意思是,Android操作系統確定應用程序未運行之前的最長時間,那么:5秒!

根據android開發者論壇: -

 - 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線程中執行長時間運行的任務然后android OS顯示在彈出窗口時: -

在此輸入圖像描述

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

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM