今朝、onConfigurationChangedイベントを処理しようとして問題が発生しました。問題は、電話の向きを変更しても、オーバーライドするメソッドが呼び出されないことです。まったく呼び出されません。
android:configChanges="orientation"Androidのドキュメントに記載されているように、マニフェストで定義されているアクティビティを設定しましたが、これで違いはありません。
この問題を思いつきましたか?
android:configChanges 。これは、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.
