Android中子线程更新UI的几种方式
1、Handler 先来看下官方对Handler的描述 A Handler allows you to send and process {@link Message} and Runnable objects associated with a thread's {@link MessageQueue}. Each Handler instance is associated with a single thread and that thread's message queue. When you create a new Handler, it is bound to the thread / message queue of the thread that is creating it -- from that point on, it will deliver messages and runnables to that message queue and execute them as they come out of the message queue. 翻译过来的大概意思:Handler允许你发送、执行与线程相关的Message和Runnable对象,每个Handler实例 关联到一个单独的线程和线程中的Message Queue。当创建Handler对象时