Android

app启动流程:冷启动,热启动,暖启动

2018-07-11  本文已影响214人  青楼爱小生

前言:项目中被诟病多媒体开机第一次启动很慢,大约3s的黑屏,后续点开启动正常,其中什么原理呢?这就涉及到系统的三种启动模型

1.Cold Start,冷启动

system--->
loding and launching the app
displaying a blank window
createing the app process


process--->
creating the application
launching the main thread
creating the main activity
inflating views
laying out the screen
perfoming the initial draw
main activity place blank window


2.Hot Start,热启动

前台activity因内存不足,被系统销毁重建的过程(重建流程同冷启动)

3.Warm Start


4.APP启动慢常见问题

上一篇 下一篇

猜你喜欢

热点阅读