请说具体一些.(大概意思我也能猜到, 主要是想要理解)

解决方案 »

  1.   

    本来mHandler是默认关联主线程的,也就是说相应的 handleMessage方法里面的语句会在主线程中执行,但是
    HandlerThread thread = new HandlerThread("SCMC");
    thread.start();
    mHandler = new MyHandler(thread.getLooper());
    把mHandler关联到thread线程上了,也就说其 handleMessage方法里面的语句会在thread线程里执行。
    关于HandlerThread ,Handler,Thread之间的区别可以参考这个帖子:
    http://www.cnblogs.com/sipher/articles/2601384.html