A more specific example of the activity section of the AndroidManifest.xml for portrait orientation:
Where android:screenOrientation sets the initial orientation and android:configChanges voids the events that triggers the corresponding lifecycle methods on screen changes.