This should be fixed in cupcake.

On Tue, Jan 13, 2009 at 11:55 PM, Jon Colverson <jjc1...@gmail.com> wrote:
>
> I'm trying to find out the physical size of the device's screen using
> this code in my activity's onCreate():
>
> DisplayMetrics metrics = new DisplayMetrics();
> getWindowManager().getDefaultDisplay().getMetrics(metrics);
>
> On my G1 metrics.xdpi is 159.3723 and metrics.ydpi is 320.8401.
> That doesn't seem right. The screen is 480x320px and 66x44mm so I
> think both DPIs should be ~184.73.
>
> Am I missing something?
>
> --
> Jon
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to