Your First Kotlin Android App
Part 4: Debugging Handling Orientation Changes
— Android & Kotlin

Lesson Complete

Play Next Lesson

Handling Orientation Changes

Variable and data keys usually start with the KEY prefix, so you might encounter this approach in other code.

Instead of putting the code after super.onSaveInstanceState() call, put the code before, to make sure the functions are executed, before your state is saved.

This course was originally created in 2019. The content and student materials were reviewed and updated in October 2020.

This episode covers the activity lifecycle and what actually happens to an activity when a device is rotated.