Android app components, activity lifecycle, Compose composables, state hoisting, ViewModel, Room and navigation.
40 cards · basic cards · AI-written, checked twice. Edit anything.
- What is an Android Activity?
Show answer
The main UI component for user interaction; one screen in an app
- What is the first lifecycle callback in an Activity?
Show answer
onCreate()
- What lifecycle callback is invoked when the Activity becomes visible?
Show answer
onStart()
- What lifecycle callback is invoked when the Activity starts receiving user input?
Show answer
onResume()
- What lifecycle callback is invoked when the Activity loses focus?
Show answer
onPause()
- What lifecycle callback is invoked when the Activity is no longer visible?
Show answer
onStop()
- What is onDestroy in the Activity lifecycle?
Show answer
The final callback before the Activity is destroyed and memory is reclaimed
- What is an Intent in Android?
Show answer
A messaging object used to request an action from another app component
- What is a Service in Android?
Show answer
An app component that performs long-running operations without a UI
- What is a BroadcastReceiver?
Show answer
A component that receives and responds to broadcast messages from the system or other apps
- What is a ContentProvider in Android?
Show answer
A component that manages access to a shared set of app data
- What is a Fragment?
Show answer
A reusable piece of UI that can be hosted by an Activity or another Fragment
- What is Jetpack Compose?
Show answer
A modern, declarative UI toolkit for building native Android UIs
- What is a Composable function?
Show answer
A function marked with @Composable that describes a piece of UI
- What does the @Composable annotation do?
Show answer
It marks a function as a Composable that can emit UI