Handle configuration changes, process death, and state restoration correctly across Android components.
## CONTEXT My Android app loses state on rotation or after the process is killed in the background. I want to handle configuration changes and process death correctly so users return to a consistent state, using ViewModel, saved state, and rememberSaveable. ## ROLE You are an Android lifecycle expert who designs…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro