Android Looper 处理程序 handleMessage 在向其发送消息后不会被调用 (HTC EVO 3D)
我遇到一个非常奇怪的问题: 在 HTC EVO 3D 上,有时,在将消息发送到循环程序的处理程序后,循环程序不会调用handleMessage。这种情况会发生两次并且很难重现。我第一次发现它是在八小时的压力测试之后。没有错误和异常。但是,我没有打印出消息是否成功发送到循环器,但我确信循环器线程仍然存在并通过调试器运行。
我使用完全相同的机制半年多了,从未出现过任何问题。我想知道有人遇到同样的问题吗?是设备问题吗?
谢谢,
西蒙
I am experiencing a very strange problem:
On HTC EVO 3D, sometimes, a looper does not call handleMessage after a message is sent to the looper's handler. It happens twice and very difficult to reproduce. The first time I caught it is after eight hours stress test. There was no errors and exceptions. However, I did not print out whether the message is successfully sent to the looper, but I am sure the looper thread is still alive and running through debugger.
I used the exactly same mechanism for more than half year and never had any problems. I am wondering does anyone meet the same problem? Is it the device issue?
Thanks,
Simon
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论