1. 程式人生 > >Android App 啟動 Activity 創建解析

Android App 啟動 Activity 創建解析

ram name token ger spl 分享 con cti image

繼承實現類關系:

  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

技術分享圖片

Android App 啟動 Activity 創建解析