HandlerThread怎么更新ui,我试了很多方法,都不能更新ui,求大神们指导一下
HandlerThread handlerThread = new HandlerThread(getMainLooper().toString());
handlerThread.start();
MyHandler myHandler = new MyHandler(handlerThread.getLooper());
Message message = myHandler.obtainMessage();
message.sendToTarget();
public class MyHandler extends Handler {
public MyHandler(Looper looper){
super(looper);
}
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
}
}
在handleMessage(Message msg)方法里怎么不能更新ui