Configuration

onConfigurationChangedの引数として渡されるConfigurationオブジェクトのnewConfigを見れば、回転時にどの方向になったかがわかる。

Configuration  |  Android Developers

newConfig.orientationが、Configuration.ORIENTATION_PORTRAITなら縦、Configuration.ORIENTATION_LANDSCAPEなら横。

起動時
起動時

起動時。

LANDSCAPEなので横
LANDSCAPEなので横

LANDSCAPEなので横。

PORTRAITなので縦
PORTRAITなので縦

PORTRAITなので縦。

Sample/android/Configuration/Configuration/src/Configuration at master · bg1bgst333/Sample · GitHub