当前位置:编程学习 > wap >>

使用scroller出现 Application is not responding怎么办啊

3-17 18:22:49.542: I/InputDispatcher(1348): Application is not responding: Window{2b3487a0 sf.hmg.turntest/sf.hmg.turntest.turntest paused=false}.  25042.3ms since event, 25040.2ms since wait started
7 18:22:44.532: I/WindowManager(1348): Input event dispatching timed out sending to sf.hmg.turntest/sf.hmg.turntest.turntest --------------------编程问答-------------------- 如果你的应用程序所做的事情在主线程里占用了太长的时间的话,一般超过5秒,Android操作系统将出现臭名昭著的Application Not Responding,ANR。
您必须在不同的线程执行耗时任务,或者至少不在主UI线程上执行。

补充:移动开发 ,  Android
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,