偶只知道不同的线程用这样来操作,请问相同线程可以不?

解决方案 »

  1.   

    sendMessage,handleMessage其实就是在一个线程内发送消息,要想跨纯种通信不是这简单的 …… 如果用post(Runnable nable)的话,其实也是在同一个线程进行通往,你可以用Thread.current.....这个方法,查看……
      

  2.   

    官方解释:http://developer.android.com/guide/topics/fundamentals/processes-and-threads.html
      

  3.   

    There are two main uses for a Handler: (1) to schedule messages and runnables to be executed as some point in the future; and (2) to enqueue an action to be performed on a different thread than your own.