Application初始化源碼分析

1,app的入口 ActivityThread.main(); 2,App主線程的消息循環 是在ActivityThread初始化的時候,就已經建立消息循環了,因此在主線程裏面建立Handler不須要指定Looper,而若是在其餘線程使用Handler,則須要單獨使用Looper.prepare()和Looper.loop()建立消息循環。java public static void main(
相關文章
相關標籤/搜索