How to change the activity orientation through java code in android?
Here is a simple way to change the orientation of the activity in android Through java code we do this…. Through xml we do this Following are two other values that you can specify in the android:screenOrientation attribute: ➤➤ portrait — Portrait mode ➤➤ sensor — Based on the accelerometer Please leave your valuable comments.