TOPIC HUB · #ARCHITECTURE
Android Architecture
ViewModel boundaries, SavedStateContainer, Jetpack AppState, and state ownership across UI and background services.
- Decoupling WebView State from Activity Lifecycles with WebContent
How the new androidx.web library separates the underlying Chromium session from the view hierarchy to preserve DOM, JavaScript heap, and scroll state across configuration changes.
- Nested SavedStateHandles: Isolating Child State Without Key Prefixes
Isolate reusable state holders inside a single ViewModel with nested SavedStateHandles, SavedStateContainer integration, and the new StateFlow-LiveData rules.
- Jetpack AppState: When Premium Ends While Music Is Playing
Compare StateFlow and AppState through a music app: shared subscriptions, derived playback policies, and the roles of ViewModel and the playback service.