1. Check out our app, Forums for Android! Download and leave feedback here!

Virtual device with 240dpi

Discussion in 'Application Development' started by Leolicos, Oct 20, 2010.

  1. Leolicos

    Leolicos Well-Known Member
    Thread Starter
    15

    Jun 16, 2010
    54
    0
    15
    Senior Software Engineer
    Chicago, IL
    I'm trying to create a virtual device with DPI of 240 so that I can test my apps on different resolution. I normally tested on dpi160, but now when I create a new device with dpi240 and check what getResources().getDisplayMetrics().density is, it's always 1.0f, when it should be 1.5f for a 240dpi device, right?

    Why isn't this right?
    My virtual device even says WVGA800 with hw.lcd.density = 240
     

    Advertisement

Share This Page

Loading...