Android emulator not rotating to landscape

2019-01-08 16:36发布

When i try to switch the orientation of my emulator, the emulator window rotates and the orientation of the emulator screen stays as it were. Can anyone tell me what is the reason for this?I have tried all the answers from StackOverflow and nothing seem to help This is how the emulator screen looks like when i try to change the orientation

11条回答
干净又极端
2楼-- · 2019-01-08 17:00

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.

查看更多
放我归山
3楼-- · 2019-01-08 17:04

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..

查看更多
爷的心禁止访问
4楼-- · 2019-01-08 17:04

try pressing numpad 7 ... it will rotate your emulator screen.

查看更多
劫难
5楼-- · 2019-01-08 17:17

With the android L emulator you can go into landscape by opening your app, then opening the camera app (you will need to set an emulated camera in AVD) record a video. Then press ctr-f12 of 11. In the camera app click the video thumbnail and play it back. The video should go to landscape. Then press the multitasking button and multitask into your app. DO NOT GO TO THE HOME SCREEN OR YOU WILL HAVE TO GO INTO THE CAMERA APP, GO TO LANDSCAPE AND REPLAY THE VIDEO! please let me know if this works for any other android emulator versions.

查看更多
【Aperson】
6楼-- · 2019-01-08 17:17

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

查看更多
登录 后发表回答