Can't create handler inside thre

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

Threadaction=newThread(){ 

publicvoidrun(){

 Looper.prepare(); 

 todo(); 

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

原文地址:https://www.cnblogs.com/xiaowangba/p/6314334.html