views:

753

answers:

2

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 working on a MacBook Pro with a max screen resolution 900 pixels high. So when the emulator starts up, the bottom is cut off.

Is there a way to scale the emulator display down to 75% or something so that it fits on my screen? Any other solution (other than running everything on the phone itself)?

A: 

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.

CommonsWare
It's the same way, you have to launch the emulator prior to building, though (instead of having eclipse do it automatically)
synic
+2  A: 

From within Eclipse:

  1. Go to Window -> Android SDK and AVD Manager -> Virtual Devices
  2. Select the AVD you want to launch and click Start
  3. Check the "Scale display to real size" button
  4. 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.
Mike