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
Another option would be to use the GenyMotion emulator, where you can actually resize the emulator window in real time. It is also much faster than the stock emulator.
If you are working with Eclipse, than here's is what you can do if the size of the emulator is too big for you screen:
This will keep the AVD scaled even if it is started automatically by Eclipse.
Enjoy
If you launch your emulator outside of Eclipse, using the android
command, you will be able to scale the screen as part of the launch process. Not sure how to do that in Eclipse, though.
The command to open in Command Prompt is given below
To open a desired size emulator window follow the below command
Example:
So just change the dpi-value according to your need. Hope u enjoy.
There is also a way to re size the emulator through a windows command prompt.
telnet localhost 5554
window scale 0.75
quit
Assuming there is one emulator running with on port 5554.
This is actually possible from your project as well, no need to start the emulator through the AVD manager:
Go to Run > Run Configurations
... > (Select your application on the left hand side) > (Click the "Target"
tab on the right hand side).
At the bottom there, you'll see Emulator launch parameters
. In the additional emulator command line options
, add '-scale 0.75'
(to make the screen 75% of full size)
Next time you start the emulator it will have scaled properly.