ActivityThread对于一个应用来说是点击lancher后启动的入口
他里面的main方法就是jvm启动的地方
public static final void main(String[] args) { -----------------main方法 jvm调用
SamplingProfilerIntegration.start();
……
Looper.prepareMainLooper();
if (sMainThreadHandler == null) {
sMainThreadHandler = new Handler();
}
ActivityThread thread = new ActivityThread(); -----------------启动主线程
thread.attach(false);
……
Looper.loop();
……
thread.detach();
……
Slog.i(TAG, "Main thread of " + name + " is now exiting");
}