Application初始化源码分析

1,app的入口 ActivityThread.main(); 2,App主线程的消息循环 是在ActivityThread初始化的时候,就已经建立消息循环了,因此在主线程里面建立Handler不须要指定Looper,而若是在其余线程使用Handler,则须要单独使用Looper.prepare()和Looper.loop()建立消息循环。java public static void main(
相关文章
相关标签/搜索