Android Zombies: How to Not Get Bit
summary
Android process death kills the process while leaving the task stack so activities relaunch without in‑memory models causing nulls or corrupted data. It differs from configuration change because the application object and singletons are gone. Testing options include the Samsung font style trick, the developer option limit background processes, and a small utility app Terminator on GitHub/Play that reliably kills only the app. Recovery tactics proven to work are saveInstanceState or minimal keys plus lazy reload from network, SQLite/Room or disk caching, and navigating users to a safe landing and then restoring state.
AI-written summary · about
chapters (4)
related talks
34mThe Life and Death of an Android Activity
30m2017 DevFestMN Emmett Wilson
45mFalsehoods Android Developers Believe About Lifecycles
45mThe Immortal App
37mHow to survive on Android and don't get killed
42mAndroid Internals for Developers
35mHow to survive on Android and don't get killed
30mSurviving a discontinuous world
