This is a known bug. Although screenDPI=240 is the correct value (it's not the real density of the display, but the density used by the OS for that screen.)
On Mon, Jan 25, 2010 at 1:37 AM, Ashutosh Sharma <[email protected]> wrote: > Hi, > > xdpi and ydpi are currently returning 96 on a Motodola Droid device. > screenDPI returns a stepped value of 240, which still isn't the > correct value. This issue was also present much earlier (pre-cupcake) > - > http://groups.google.com/group/android-developers/browse_thread/thread/72ad6ba7683a6b80 > > Is this a known bug? Is this expected to be fixed soon? Given the > varying pixel densities of devices that are coming up, having a way to > obtain accurate screen DPI is essential. > > Thanks, > Ashutosh > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

