Skip to content Skip to sidebar Skip to footer

Android - Unexpected Brief Orientation Change At Switch Of Activity

I want to set the orientation of the screen dynamically in my android application. For that I use activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)); and

Solution 1:

use this in for your activity in the manifest rather than programmatically change the orientation

android:screenOrientation="landscape"

Post a Comment for "Android - Unexpected Brief Orientation Change At Switch Of Activity"