Re: [android-porting] How to determine dpi of new devices

2010-07-22 Thread Dianne Hackborn
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 wrote: > Our company are porting 2.1 to new device who

[android-porting] How to determine dpi of new devices

2010-07-22 Thread James Wang
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 15