在线程的run()的实现部分的开头写 Looper.prepare(); 结尾写 Looper.loop(); 详细原理可参见http://www.android123.com.cn/androidkaifa/422.html