Blankj / blog-comment

0 stars 0 forks source link

App 启动过程(含 Activity 启动过程) | 安卓 offer 收割基 | Blankj's Blog #156

Open Blankj opened 6 years ago

Blankj commented 6 years ago

https://blankj.com/2018/09/29/the-process-of-app-start/

这道题在曾经面试「菜鸟网络」中遇到过,不过当时只问了「Activity 启动过程」,这里对整个「App 启动过程」进行完整的源码分析,希望可以帮助到大家。

fineDroid commented 6 years ago

来自咔擦的亲切问候!

Blankj commented 6 years ago

@leisurelyzhang 来自咔擦的亲切问候!

咔嚓何苦为难咔嚓

princeHe commented 6 years ago

面试的时候需要说到这么详细的调用链?

halibobo commented 5 years ago

楼主GitHub已经顺利进入阿里了吧

Blankj commented 5 years ago

@halibobo 楼主GitHub已经顺利进入阿里了吧

运气好进来了哈

Blankj commented 5 years ago

@princeHe 面试的时候需要说到这么详细的调用链?

关键的几个类说到即可

adonis-lsh commented 5 years ago

app启动流程跟Acitivity启动流程不就是差Launcher里面的几个方法吗

Kirito0512 commented 4 years ago

从Process.start是怎么调用到ActivityThread.start的?大致是startViaZygote->zygoteSendArgsAndGetResult->Zygote的socket->ActivityThread.main