画面の向きの設定はAndroidManifest.xmlの中で設定できます。コードの中で直接いじれないものかやってみましたが、挫折しました。もしかして出来ないのかも。 Activity要素の中のscreenOrientationで設定します。 <activity android:label="Label Name" android:name=".ClassName" android:screenOrientation="landscape"> ドキュメントにある設定値は下記。 ・unspecified (システムで判断?) ・landscape (横長の向き) ・portrait (縦長の向き) ・user (ユーザに従う?) ・behind (親のActivityに従う) ・sensor 傾き検知) ・nosensor (傾き検知を常に無視?) いまいち謎なものもありますが、練習がてら