简体   繁体   中英

Screen orientation in android emulator

I am having problem using the emulator.

Problem: Though my emulator in portrait mode, my home screen displaying in landscape mode.

Screenshot

在此处输入图片说明


Settings of the Emulator

  • Platform: Android 3.0
  • API Level: 11
  • 在此处输入图片说明

Note: I don't have problem running this in API Level 8

Android 3.0 (and all 3.X versions) are only available for tablets, not for phones. Therefore their default orientation is landscape, not portrait. Select a tablet device such as the 10.1" WXGA (Tablet) (1280x800; mdpi) and it will work as expected.

Android 3.0 sdk are designed for large screens only (ie tablets). You can get more idea about this on official documentation of this version Android 3.0 After this The next version of Android 4.0 Ice-cream Sandwich was designed and optimized for both portrait and landscape mode.

You can set orientation to portrait in your manifest file to fix orientation for your app and you can change orientation of your emulator by pressing ctrl+F12

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