1.当调用Activity.startActivity,紧接着这个方法内部是调动
Activity.startActivityForResult();
2.Activity.startActivityForResult()内部调用Instrumentation.execStartActivity()
3.Instrumentation.execStartActivity()调用ActivityManagerProxy.startActivity()
4.ActivityManagerProxy.startActivity()通过Binder通知ActivityManagerService.startActivity()
5.ActivityStarter.startActivityMayWait();
6.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked();
6ActivityStack.resumeTopActivityUncheckedLocked 调回ActivityStack.resumeTopActivityInnerLocked()
7.ActivityStackSupervisor.realstartActivityLocked()
8.ApplicationThread.scheduleLaunchActivity()
9.H发送消息
10.ActivityThread.handleLaunchActivity()处理消息
11.ActivityThread.performLaunchActivity()
12.Instrumentation.callApplicationOnCreate()
13.Activity.performCreate();
微信图片_20210708113451.jpg
网友评论