美文网首页
StartActivity主体流程-api26

StartActivity主体流程-api26

作者: tinyvampirepudg | 来源:发表于2020-06-08 18:19 被阅读0次

    主体流程

    基于api26

    App端:

    Activity#startActivity(Intent intent)
    Activity#startActivity(Intent intent, @Nullable Bundle options)
    Activity#startActivityForResult(Intent intent, int requestCode)
    Activity#startActivityForResult(Intent intent, int requestCod, Bundle options)
    Instrumentation.ActivityResult#execStartActivity
    ActivityManagerService#startActivity(IApplicationThread caller, String callingPackage...)

    AMS端:
    ActivityManagerService#startActivityAsUser
    ActivityStarter#startActivityMayWait
    ActivityStarter#startActivityLocked
    ActivityStarter#startActivity(IApplicationThread caller, Intent intent, Intent ephemeralIntent,...)
    ActivityStarter#startActivity(final ActivityRecord r, ActivityRecord sourceRecord,...)
    ActivityStarter#startActivityUnchecked
    ActivityStackSupervisor#resumeFocusedStackTopActivityLocked
    ActivityStack#resumeTopActivityUncheckedLocked
    ActivityStack#resumeTopActivityInnerLocked
    ActivityStackSupervisor#startSpecificActivityLocked
    ActivityStackSupervisor#realStartActivityLocked

    App端:
    ApplicationThread#scheduleLaunchActivity
    ActivityThread#handleLaunchActivity
    ——ActivityThread#performLaunchActivity
    ——Activity#onCreate
    ——Activity#onStart
    ——ActivityThread#handleResumeActivity
    ——Activity#onResume

    参考:

    Activity启动流程(基于Android26)

    相关文章

      网友评论

          本文标题:StartActivity主体流程-api26

          本文链接:https://www.haomeiwen.com/subject/nhqdtktx.html