Questa mattina ho riscontrato un problema nel tentativo di gestire l' onConfigurationChangedevento. Il problema è che il metodo, che ignoro, non viene chiamato quando cambio l'orientamento del telefono. Non essere chiamato affatto.
Ho inserito android:configChanges="orientation"l'attività definita nel manifest come menzionato nella documentazione di Android, ma questo non fa differenza.
Hai trovato questo problema?
android:configChanges Questo è ciò che ha detto il 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.
