Android Architecture Components (Jetpack இன் பகுதி) வலிமையான, பராமரிப்பு சாத்தியமான பயன்பாடுகளை உருவாக்க உதவும் நூலகங்கள் — ViewModel (lifecycle-aware state), LiveData/StateFlow (observable data), மற்றும் Room (database abstraction) உட்பட. அவை பரிந்துரைக்கப்பட்ட 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)
