/** * Handy class for starting a new thread that has a looper. The looper can then be * used to create handler classes. Note that start() must still be called. */开启一个线程内部有一个looper, 这个looper可以用来创建handler. 切记一定要调用start方法. publicclassHandlerThreadextendsThread{ ..... } publicHandlerThread(String name){ super(name); mPriority = Process.THREAD_PRIORITY_DEFAULT; }