[Android knowledge notes] application process (1)

The startup process of the application process

Cold start and warm start

insert image description here

insert image description here
insert image description here

Cold start compared with hot start: In addition to starting the entry activity of the target process, cold start also needs to apply to Zygote to start the target application process through AMS , while hot start needs to directly open the entry activity of the target process because the target process has already started That's it.

AMS cold start general process:

insert image description here

When is the application process started?

  1. AMS checks whether the application process where the component is located is started before starting the component
  2. If it has been started, directly start the life of the corresponding component

Guess you like

Origin blog.csdn.net/lyabc123456/article/details/131710832