I'm working on an App with 3 fragments. When the App is launched I want one of the fragments to be loaded by default, and I achieve this by making a fragment transaction in the Activity OnCreate() method, however this method is also called when the screen is rotated and as a result the start fragment is loaded every time the user rotates the phone. How can I avoid this so the fragment transaction is only done if the app is launched but not if it's rotated.
Disabling rotation is not an option as I want it to be available in both landscape and portrait.