...应用程序看上去僵死一样,如果阻塞的时间过长(超过5秒)android则会弹出一个“应用程序没有响应(application not responding)”的对话框。
基于24个网页-相关网页
如果主机是已知的,但是用户抱怨这个主机本身或它上面运行的应用程序没有响应,那么使用ping并查看数据包丢失率是否为0%(见清单6)。
If a host is known but you find that users are complaining that the host itself or an application running on it isn't responding, use ping and look for 0% packet loss (see Listing 6).
更坏的是,如果应用程序ui线程被阻塞超过几秒钟(现在大概是5秒),用户就会看到一个让人不高兴的“应用程序没有响应”(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.
应用推荐