The AMS family for Android 8.0

2. AMS startup process

3. AMS and application processes

Service calls the ActiveServices bringUpServiceLocked method during startup:

4. Important data structures for AMS

4.1 ActivityRecord

4.2 TaskRecord

4.3 ActivityStack

4.3.1 Instance type of ActivityStack

4.3.2 ActivityState

4.3.3 Activities in special states

4.3.4 Maintaining an ArrayList

5. Activity stack management

5.1 Activity task stack model

5.2 Launch Mode

5.3 the Intent of the FLAG

5.4 TaskAffinity