Android App 启动 Activity 创建解析

继承实现类关系:

  ActivityThread  thread = new ActivityThread();

  Context->ContextImpl   ContextImpl context = new ContextImpl(null, mainThread, packageInfo, activityInfo.splitName,activityToken, null, 0, classLoader);

     Window->PhoneWindow

  WindowManger->WindowMangerImpl

  FrameLayout->DecorView

  ViewRoot->ViewRootImpl

 

 

 

posted @ 2018-11-26 10:34  千彧  阅读(192)  评论(0编辑  收藏  举报