search

Home  >  Q&A  >  body text

android thread无法使用,不能发送message也不能收到message。。

黄舟黄舟2772 days ago581

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 16:17:54

    Looking at the code, I have a question: What happens after the Thread object is new? Nothing further.

    reply
    0
  • 阿神

    阿神2017-04-17 16:17:54

    Your thread has not started, it is missing .start(). Refer to the writing method below.

    new Thread(new Runnable(){
        //TODO
    }).start();
    

    reply
    0
  • Cancelreply