Quick Answer: Which Methods Are Called When the Screen Changes Orientation from Portrait to Landscape in Android?
Contents

In this method, when you switch from Portrait to Landscape, a method is called, onConfigurationChanged method. In this method, you need to write your own custom codes to update the resource inside the Activity.

Which method is called when screen changes orientation?

When I change the orientation of the Android application, it calls onStop method and then onCreate.

What happens when we change the orientation from portrait to landscape in Android?

When you rotate your device and the screen changes orientation, Android usually destroys your application’s existing Activities and Fragments and recreates them. Android does this so that your application can reload resources based on the new configuration.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest