Force Orientation programmatiquement Android

myActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
Hilarious Hamster