Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen still rotates with Auto-Rotate Disabled on Android Devices Above SDK 30 #288

Open
ShaminiSaravanan opened this issue Feb 22, 2024 · 2 comments

Comments

@ShaminiSaravanan
Copy link

Despite turning off my device's auto rotate state, my Android device still rotates. This issue occurs on devices running Android version 10 and above.
Please let me know if you need any further information.

AndroidManifest.xml Code:

  <application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme" android:usesCleartextTraffic="false" android:requestLegacyExternalStorage="true">
    <activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustPan" android:exported="true">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>
  </application>
@ShaminiSaravanan ShaminiSaravanan changed the title Device Auto Rotate State Ignored on Android Devices Above SDK 30 Screen still rotates with Auto-Rotate Disabled on Android Devices Above SDK 30 Feb 22, 2024
@saikiranm33
Copy link

saikiranm33 commented Mar 5, 2024

Screenshot 2024-03-05 at 8 52 43 AM

@ShaminiSaravanan
This will work based on Auto-Rotate
Reference :- https://developer.android.com/reference/android/R.attr#screenOrientation

@wangxiang365
Copy link

Screenshot 2024-03-05 at 8 52 43 AM @ShaminiSaravanan This will work based on Auto-Rotate Reference :- https://developer.android.com/reference/android/R.attr#screenOrientation

Can't the unlockAllOrientations method pass parameters? In this case, the installation source code must be modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants