android fixed landspace code example Example: how lock horizontal orientation android setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);