Set The Orientation To Portrait From Code
I know I can limit the orientation from the manifest file. Like this android:screenOrientation='portrait' But is it possible to set the orientation from code ? for example setting
Solution 1:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
Solution 2:
Activity. setRequestedOrientation(..)
Post a Comment for "Set The Orientation To Portrait From Code"