源码分析-Activity的启动流程

以android 6.0源码为参考,其他版本api会稍有不同
在Activity中,启动一个Activity的方法

@Override
public void startActivity(Intent intent) {
this.startActivity(intent, null);
}
调用其重载2个参数的方法

public void startActivity(Intent intent, @Nullable Bundle options) {
if (options != null) {
startActivityForResult(intent, -1, options);
} else {
// Note we want to go through this call for compatibility with
// applications that may have overridden the method.
start

源码分析-Activity的启动流程最先出现在Python成神之路

版权声明:
作者:ht
链接:https://www.techfm.club/p/13227.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>