There is an application that should only be shown in landscape. In the manifest is written for the activity:
android:screenOrientation="landscape" android:configChanges="orientation" but when locking and unlocking the device, the orientation to portrait and landscape changes accordingly. This naturally recreates the activity.
How to win it?