You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to disable app to rotate even if devices's screen rotation is on, I tried below code to disable screen rotation, still it rotates the app in latest android devices when device's screen rotation is on.
In LauncherActivity.java I set orientation to portrait.
In AndroidManifest.xml I set android:screenOrientation="portrait"
Still it rotates when auto rotation is enabled in device.
Please advice what can I do to disable screen rotation, I tried all other options for orientation like "nosensor", "sensotPortrait", "locked".
The text was updated successfully, but these errors were encountered:
Hello,
I want to disable app to rotate even if devices's screen rotation is on, I tried below code to disable screen rotation, still it rotates the app in latest android devices when device's screen rotation is on.
Still it rotates when auto rotation is enabled in device.
Please advice what can I do to disable screen rotation, I tried all other options for orientation like "nosensor", "sensotPortrait", "locked".
The text was updated successfully, but these errors were encountered: