转载请注明出处:https://blog.csdn.net/m0_37840695/article/details/119801922源码版本:Sources for android30。(31的版本太新,android studio还没法下载)还是由易到难,先讲HandlerThread,再讲Handler用于切换到主线程。一.HandlerThread1.HandlerThread用法publicclassTestActivityextendsAppCompatActivity{privatestatic