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)的消息。
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秒),用户就会看到一个让人不高兴的“应用程序没有响应”(ANR)对话框。
In fact, if this task takes more than five seconds, the Android operating system will reward your application with the infamous application Not Responding dialog in Figure 1.
事实上,如果这个任务超过5秒,Android操作系统将出现臭名昭著的Application Not Responding对话框,如图1所示。
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对话框,具体视用户网络速度而定。
Again, the sample application provides the framework for receiving and responding to the glucose events, but does not provide the logic to analyze them.
同样,样例应用程序提供了框架来接收和响应与葡萄糖有关的事件,但是没有提供用于执行分析的逻辑。
This will force errors on the client side if the application is not responding within a reasonable amount of time.
这将在应用程序没有在合理的时间里作出响应时使客户机端出现错误。
That's OK for a console application, but you should not do it from a UI thread, because it blocks the UI from responding to user input.
对于一个控制台应用程序,这没问题,但你不应该在一个UI线程中采用这一做法,因为这会阻止UI去响应用户输入。
That's OK for a console application, but you should not do it from a UI thread, because it blocks the UI from responding to user input.
对于一个控制台应用程序,这没问题,但你不应该在一个UI线程中采用这一做法,因为这会阻止UI去响应用户输入。
应用推荐