阅读背景:

Android 启动、绘制、显示过程

来源:互联网 

Activity 启动过程:
startActivity()-> Instrumentation.execStartActivity()-> Binder->ActivityManagerService-> Zygote fork app -> Binder -> ApplicationThread.scheduleLaunchActivity() - > Handler -> ActivityThread.handleLaunchActivity() -> performLauncherActivity -> Instrumentation create Activity -> 设置 application ,创建 ContextImpl,调用 attatch 方法,调用 Instrumentation 的 callActivityOnCreate-> Activity.onCreate() startActivity()-> Instrumentatio




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: