What happens next when the device switches between portrait and landscape?
- When the android: configChanges of the Activity is not set, the cut screen will re-call each life cycle, it will be executed once when the horizontal screen is cut, and it will be executed twice when the vertical screen is cut
- When the android: configChanges = "orientation" of the Activity is set, The screen cut will still call each life cycle again. It will only be executed once when the screen is cut horizontally or vertically.
- When setting the android: configChanges = "orientation | keyboardHidden" of the Activity, the screen cut will not re-call each life cycle, only onConfigurationChanged will be executed method