android studio rotate screen code example Example: how to rotate screen in android studio setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);