源码分析-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
共有 0 条评论