• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Virtual device with 240dpi

Leolicos

Member
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
 
Back
Top Bottom