The DPI should match the actual DPI of the screen.  More specifically, xdpi
and ydpi should be the exact DPI, and densityDpi/scaledDensity should be the
closest density bucket (120, 160, 240, 320).

On Thu, Jul 22, 2010 at 5:45 AM, James Wang <jameswangc...@gmail.com> wrote:

> Our company are porting 2.1 to new device whose resolution is
> 1024*600 and screen size is 5.5inch.
> We have got the model. We had thought this new device's dpi should be
> 240 but we found out the output of DisplayMetrics was like below:
> density is 1.0
> densityDpi is 160
> scaledDensity is 1.0
> xdpi is 159.8
> ydpi is 160.2
>
> I think the one porting display driver made mistakes but the others do
> not think it was wrong.
> Can we change dpi of LCD to any value as our wish?
>
> Thanks.
>
> James
>
> --
> unsubscribe: 
> android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com>
> website: http://groups.google.com/group/android-porting
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to