Android - Emulator in landscape mode, screen does not rotate

前端 未结 19 1930
再見小時候
再見小時候 2020-11-28 04:36

When I switch to landscape mode (NUMPAD 7 or CTRL+F11) the emulator rotates the screen to landscape orientation but the Android OS and none

相关标签:
19条回答
  • 2020-11-28 05:15

    As of API 29, it stops working randomly for no reason. Need to shutdown and restart emulator, then it works again.

    0 讨论(0)
  • 2020-11-28 05:16

    On API level 25 (no skin) it worked after going into the setting, searching for "rotate" and toggling both related settings off and on again.

    0 讨论(0)
  • 2020-11-28 05:17

    Pixel 2 - API 28 (Android 9)

    I had to do this to fix it.

    • Open AVD Manager
    • Select Pixel 2 - API X
    • Edit
    • Show Advanced Settings
    • Untick "Enable keyboard Input"

    Only this has worked for me.

    0 讨论(0)
  • 2020-11-28 05:18

    As of mid 2015 the issue is still open and logged in the android bug tracker here's the link you can check it out https://code.google.com/p/android/issues/detail?id=61671

    None of the above solutions worked for me and i am using Android 4.4.2 emulator. As a work around in your graphical layout you can change the orientation and check it out.

    0 讨论(0)
  • 2020-11-28 05:21

    Is the accelerometer property of the emulator set to True? please check it. if not, set it to true. it should help. its working fine on mine.

    Open AVD Manager -> GoTo 'Device Definitions' tab -> Select an existing AVD -> Clone

    0 讨论(0)
  • 2020-11-28 05:23

    In my case it was solved by disabling the "Hardware keyboard present" checkbox in the "Edit Android Virtual Device (AVD)" window.

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