Open randoms opened 5 years ago
Add the following line in your activity's onCreate method will cause app exit.
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
However it's OK to set orientation in activity's manifest file.
Add the following line in your activity's onCreate method will cause app exit.