Emulating density of 320 dpi on android emulator

LB_ picture LB_ · Jan 25, 2011 · Viewed 29.3k times · Source

We're trying to emulate devices with the new density of 320 dpi in Android 2.3 - such as Archos 101, and we can't seem to be able to define an emulator with such density, even after downloading the latest 2.3 sdk.

I would really appreciate some ideas on this one :)

Many thanks!

Answer

codezjx picture codezjx · May 9, 2017

That is quite simple.

Modify the attribute hw.lcd.density=320 at avd config file: /Users/yourUserName/.android/avd/CustomDevice_API_19.avd/config.ini, and reboot your virtual device. I'm already test it, and it works to me!

Warnning: Make sure you set the correct density, otherwise you will receive an error: qemu: available lcd densities are: 120, 160, 213, 240, 280, 320, 360, 400, 420, 480, 560, 640

BTW my Android SDK Tools version is 25.2.5.