Android system
A component is a basic function module that can be called. The Android app is made up of components.
Android System structure:
Activity : Complete basic function, visual interface = phone screen
Service: Background services, background operation, foreground application
Broadcastreceiver: Broadcast mechanism, groups that accept and respond to broadcast messages
ContentProvider: A set of interfaces, the only way to share data between applications, to store and retrieve data, and to think of an interface that his application provides access to data
Execution process:
Oncreate:acivity Initialization
Onstart:activity Display
Onrestart: Inactive state enters active state
Onresume: Data interaction
OnPause : Enter a paused state
Onstoop : Enter stop State
OnDestroy : Non-active
Android system architecture and execution process