Learn how to properly save and restore Android activity state using onSaveInstanceState(). Complete guide with code examples and best practices for handling configuration changes.