Can't create handler inside thre 像提示说的,添加Looper.prepare(); Threadaction=newThread(){ publicvoidrun(){ Looper.prepare(); todo(); Looper.loop();} }; action.start()