Even worse, if the UI thread is blocked for more than a few seconds (about 5 seconds currently) the user is presented with the infamous "application not responding" (ANR) dialog.
更糟糕的是,如果UI线程被阻塞一段时间(大概5秒),用户就会看到臭名昭著的“程序无反应”的对话框了。
If you run the code in Listing 1 on the main UI thread of an application, it might cause an application Not Responding dialog to appear, depending upon the speed of the user's network.
如果您在应用程序的主ui线程上运行清单1中的代码,可能会出现Application Not Responding对话框,具体视用户网络速度而定。
In Android terms, applications that are insufficiently responsive will frequently cause the system to pop up the dreaded "application Not Responding" (ANR) message.
用Android的话来说,不能够及时响应的应用经常使系统弹出令人恐惧的“应用没有响应”(ANR)的消息。
In Android terms, applications that are insufficiently responsive will frequently cause the system to pop up the dreaded "application Not Responding" (ANR) message.
用Android的话来说,不能够及时响应的应用经常使系统弹出令人恐惧的“应用没有响应”(ANR)的消息。
应用推荐