Handling your app’s state is not just limited to device rotation. Traditionally many of us have locked our apps to portrait mode to avoid having to do proper state management. But with the introduction of things like Dark Theme and Split Window, this no longer suffices.
In this talk, I discuss the various scenarios in which your Activity/Fragment /Views can be recreated and the steps to be taken to handle them. We also take a look at how Architecture Components help tackle this problem and how you can test these scenarios in your app.