Question

I am having problem using the emulator.

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

Screenshot

enter image description here


Settings of the Emulator

  • Platform: Android 3.0
  • API Level: 11
  • enter image description here

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

Était-ce utile?

La solution

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.

Autres conseils

Android 3.0 sdk are designed for large screens only (i.e. 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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top