Android Architecture Components (part of Jetpack) are libraries that help build robust, maintainable apps — including ViewModel (lifecycle-aware state), LiveData/StateFlow (observable data), and Room (a database abstraction). They support recommended architecture patterns.
ViewModel — lifecycle-aware state holder
VIEWMODEL holds UI-related state and logic, SURVIVING configuration changes:
→ state stored in a ViewModel SURVIVES screen rotation (the activity recreates, but the
ViewModel persists) → solves the lost-state-on-rotation problem
→ separates UI logic from the Activity/Fragment (the View just observes/displays)
