解决方案 »
- 代码里面怎么获得button引用的资源ID
- 菜鸟新人求解释handler.post
- android中用Http的方式访问远程服务器
- Conversion to Dalvik format failed with error 1
- 为什么udp不能发送和接收消息?
- 谁有修正的了bug的asmack.jar包用于androidpn推送的
- An Android Virtual Device that failed to load
- 我的android小程序可以再模拟器上运行,到手机上运行出问题
- 请问桌面固定的几个图标的区域可以换位置吗?
- app安装时报错!
- android 里可以用哪些填充GridView 的视图
- Android下能够实现蓝牙打印吗
呵呵
我的烂英文水平只能翻译到这个程度了。
Default constructor associates this handler with the queue for the current thread. If there isn't one, this handler won't be able to receive messages.
默认的构造函数会将当前线程的(消息)队列关联到这个handler中,如果线程中没有<这个消息队列>, 这个handler将不能收到消息了。<也就是创建这个handler将毫无用处>
这个不能这么理解,你得看全文Handler()是默认构造函数,把用它初始化的handler对象加入当前进程的消息队列中。如果没有调用过Handler()这个函数,那么这个handler对象将无法接收消息