handler消息机制和handler多种用法:https://blog.csdn.net/yhy123456q/article/details/80666730
android中的线程和线程池:https://www.jianshu.com/p/78444487c5ab
android 快速切换到主线程更新UI的几种方法:https://blog.csdn.net/da_caoyuan/article/details/52931007
Application初始化多线程和handler机制
//多种用法具体看Handler提供的方法
private static Handler mHandler = new Handler(Looper.getMainLooper());
public static ExecutorService threadPool = Executors.newCachedThreadPool();//线程池
mHandler.post(new Runnable() {
@Override
public void run() {
}
});
threadPool.submit(new Runnable() {
@Override
public void run() {
}
});