I\'m writing my first Android app for a small business that has some Droid phones. I set up an AVD for the phone with the right resolution: 854 pixels high.
I\'m wo
The telnet answer above is great for Android Studio developers. I just wanted to add that the window scale command will take either a scale factor OR the dpi which may be easier for many people (measure once and it should work for you ADV which are 1dp:1 pixel)
telnet localhost PortNumOfAVD
window scale 96dpi
quit
Note telnet is not installed on windows by default anymore.
From within Eclipse
:
Go to Window > Android SDK and AVD Manager > Virtual Devices
Select the AVD you want to launch and click Start
Check the Scale display to real size
button
Enter how big you want it to appear in inches and press Launch
. For this to work, you'll have to also enter a reasonable approximation of your mac's screen resolution. I'm using 7 inches and 113 dpi for my 13" Macbook Pro, but you may be able to get away with 8 or 9 inches.
You can permanently change window size of emulator by changing in config.ini file of avd
For that you need to follow this path
In config.ini file change the value of skin.name and skin.path to your conveniency. I have set it to 480x600 .
For Changing the window size of the Android Emulator
Append the parameter -scale <scale factor>
to the Emulator launch parameters. In eclipse, put it in the field "Additional Emulator Command Line Options" within the Run Configuration.
Allowed scale factors are those between 0.1 and 3, although the most common will probably be -scale 0.5
.
I definitely recommend running the emulator through terminal or command line because it allows you for much better control.
For example, if you want to run emulator in different size, you just need to run it like this.
~/Android/Sdk/tools/emulator -scale 0.35 -avd Nexus_5_API_23
Nexus_5_API_23 corresponds to existing AVD on my host computer. When you create different Android Virtual Devices, you can just replace it with name of your device and it works. So basically you just run emulator from Android SDK's tools directly. You can also add other parameters like netdelay, netspeed etc.