Now that you have said that, I recommend you a website called Baidu. There is a box in the middle of the website. If you don’t understand anything, enter it first and click "Baidu" on the right.
Because ActivityThread belongs to the framework source code, so if you want to verify it by logging, it is impossible.
You can only look for clues from ActivityThread的main方法中去寻找线索,看看里面是如何进入Application的onCreate's main method to see how it enters the onCreate function of Application
Now that you have said that, I recommend you a website called Baidu. There is a box in the middle of the website. If you don’t understand anything, enter it first and click "Baidu" on the right.
A process should have only one entry main function
The main method of Activitythread is the real entrance. He managed the creation of the four major components of Android
The entrance to the Android application is defined in AndroidManifest.xml.
As shown below:
Because
ActivityThread
belongs to the framework source code, so if you want to verify it by logging, it is impossible.You can only look for clues from
ActivityThread
的main
方法中去寻找线索,看看里面是如何进入Application
的onCreate
'smain
method to see how it enters theonCreate
function ofApplication