← Android App Development (Kotlin) learning pathAndroid App Development (Kotlin) · Module 3 of 10
Activities, lifecycle and intents
Understand screens, their lifecycle and moving between them.
📖 Key ideas
- An Activity is an entry screen of an app.
- Lifecycle: onCreate, onStart, onResume, onPause, onStop, onDestroy.
- Configuration changes (rotation) recreate activities.
- Intents start activities or other apps (share, call, maps).
- Declare activities and permissions in AndroidManifest.xml.
💡 Real-life example: The lifecycle is a shop's daily routine: open, serve, pause for lunch, close.
ActivityA screen/entry point
onCreateLifecycle start method
IntentMessage to start a component
AndroidManifest.xmlApp declaration file