Can't create handler inside thre

来源:互联网 发布:淘宝企业店铺有扶持吗 编辑:程序博客网 时间:2024/06/02 21:20

像提示说的,添加 Looper.prepare(); 

Threadaction=newThread(){ 

publicvoidrun(){

 Looper.prepare(); 

 todo(); 

 Looper.loop();} }; action.start()

原创粉丝点击