Android emulator not rotating to landscape

后端 未结 11 1366
星月不相逢
星月不相逢 2020-12-01 07:21

When i try to switch the orientation of my emulator, the emulator window rotates and the orientation of the emulator screen stays as it wer

相关标签:
11条回答
  • 2020-12-01 08:02

    These answers help me to do this.. Please try these and you can see what u wanted to do

    https://stackoverflow.com/a/4057309/1063861

    https://stackoverflow.com/a/4535315/1063861

    0 讨论(0)
  • 2020-12-01 08:02

    Is only your application is not rotating or other applications in the emulator also not rotating?

    If only your application is not rotating, then there must be android:screenOrientation parameter set somewhere in the manifest file.

    If all other apps on the emulator are also not rotating, no problem with your application, delete and create a new emulator..

    0 讨论(0)
  • 2020-12-01 08:02

    Check in your manifest if there is android:screenOrientation

        <activity
            android:name="com.your.activity"
            android:screenOrientation="sensorPortrait" >
        </activity>
    

    If this is the case, delete the lines.

    0 讨论(0)
  • 2020-12-01 08:04

    Some of the emulator targets like 4.4 (API level 19) and 2.3 have a bug. Change your emulator to target version 4.2 or 4.3 and try to change the orientation.

    See the history of this bug: https://code.google.com/p/android/issues/detail?id=13189

    Related question: Impossible to rotate the emulator with android 4.4

    0 讨论(0)
  • 2020-12-01 08:05

    This is a bug in android emulator. Add Keyboard Support - yes in emulator properties to fix this problem. You can track this bug : http://code.google.com/p/android/issues/detail?id=34237

    0 讨论(0)
  • 2020-12-01 08:07

    My solution was to enable the accelerometer in the device profile.

    0 讨论(0)
提交回复
热议问题