Dziś rano wpadłem na problem, próbując poradzić sobie z tym onConfigurationChangedwydarzeniem. Problem w tym, że metoda, którą nadpisuję, nie jest wywoływana przy zmianie orientacji telefonu. W ogóle mnie nie wezwano.
Ustawiłem android:configChanges="orientation"aktywność zdefiniowaną w manifeście, jak wspomniano w dokumentacji Androida, ale to nie robi różnicy.
Czy wpadłeś na ten problem?
android:configChanges Tak powiedział Google javadoc: Note: If your application targets API level 13 or higher (as declared by the minSdkVersion and targetSdkVersion attributes), then you should also declare the "screenSize" configuration, because it also changes when a device switches between portrait and landscape orientations.
