emulation - Emulating density of 320 dpi on android emulator -


we're trying emulate devices new density of 320 dpi in android 2.3 - such archos 101, , can't seem able define emulator such density, after downloading latest 2.3 sdk.

i appreciate ideas on 1 :)

many thanks!

in avd manager if choose built-in skin abstracted lcd density ignored , set density described here:

emulator skins (from http://developer.android.com/tools/revisions/platforms.html)

the downloadable platform includes following emulator skins:

  • qvga (240x320, low density, small screen)
  • wqvga400 (240x400, low density, normal screen)
  • wqvga432 (240x432, low density, normal screen)
  • hvga (320x480, medium density, normal screen)
  • wvga800 (480x800, high density, normal screen)
  • wvga854 (480x854 high density, normal screen)
  • wxga720 (1280x720, extra-high density, normal screen)
  • wsvga (1024x600, medium density, large screen)
  • wxga800-7in (1280x800, high density, large screen) new
  • wxga800 (1280x800, medium density, xlarge screen)

if wish set own abstracted lcd density you'll need define own resolution manually clicking resolution radio button.

here's code can use test this:

displaymetrics metrics = new displaymetrics(); getwindowmanager().getdefaultdisplay().getmetrics(metrics); int density = metrics.densitydpi;     if (density == displaymetrics.density_high) {         toast.maketext(this, "density_high... density " + string.valueof(density),  toast.length_long).show();     }     else if (density == displaymetrics.density_medium) {         toast.maketext(this, "density_medium... density " + string.valueof(density),  toast.length_long).show();     }     else if (density == displaymetrics.density_low) {         toast.maketext(this, "density_low... density " + string.valueof(density),  toast.length_long).show();     }     else {         toast.maketext(this, "density neither high, medium or low.  density " + string.valueof(density),  toast.length_long).show();     } 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -