setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); //將螢幕轉成横式 //setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); //將螢幕轉成直式