简体   繁体   中英

How to rotate screen inside AVD with Android Emulator (Not the AVD rotation)

I'm using Android Emulator with Android 4.4.2 API level 19 Skin WVGA800 and when I press Left Ctrol+F11 , AVD disposition changes from Portait to Landscape but screen orientation inside AVD still being Portrait. I appreciate any help!!

I found this app "Set Orientation" that allows you to force your device into a particular screen orientation. Supports all orientations, which on Android 2.3 (Gingerbread) and above includes reverse (upside-down) and sensor-based orientations.

https://play.google.com/store/apps/details?id=com.googlecode.eyesfree.setorientation&rdid=com.googlecode.eyesfree.setorientation

I hope this help people with the same problem. It was useful for me.

It's a bug on emulator. API level 19 (4.4) not support screen orientation: http://code.google.com/p/android/issues/detail?id=61671

Try change the API level target on your AVD settings. API level 18 (4.3) works fine for me.

This so link provides some way to fix this bug in the emulator like:

1- disabling the "Hardware keyboard present" checkbox in the "Edit Android Virtual Device (AVD)" window.

2- removing the "Keyboard lid support" option in the settings of the hardwere virtual machine

3- setting accelerometer property of the emulator set to True.

OR Problem are not solve , try this.... Num Lock is "OFF" & Press (Keypad 7 or Keypad 9)

etc.

发现该错误仍在运行API 27的模拟器中。对我有用的:高级设置->键盘->启用键盘输入(禁用)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM