How to return to the vertical screen after the Android emulator has switched the horizontal screen

Source: Internet
Author: User

In the morning when testing the compatibility of the resolution, the sudden input of the simulator into a horizontal screen, do not know how to switch the vertical screen, found the following method:

---------------------------------------------------------------------------------------------------------------

Transferred from: http://android.tgbus.com/Android/tutorial/201106/357476.shtml

Android Simulator horizontal Screen switching method

Many do not buy the real machine users do not know how to switch the Android simulator to the horizontal screen display. The general display is hvga-p (port), which is the resolution of 320x480 if you are using a horizontal screen (land). If the emulator is not already started, you can set it in the Eclipse Project Run As=>open Run Dialog dialog box, and if the Android emulator is already started, you can use the shortcut key F12 or ctrl+f11 to switch. Of course, using the command line just to start the emulator can be started using the parameter Emulator.exe-skin hvga-l.

It is important to note that switching land or port can use a resource file to make the interface adaptive to the form, but the program may overload the OnCreate, The avoidance method can be controlled by redefining the direction in the Androidmanifest.xml file, and according to the activity's override onconfigurationchanged (Configuration newconfig) method. The relevant can be obtained in the Android SDK.

How to return to the vertical screen after the Android emulator has switched the horizontal screen

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.