For a project, I have to use real size, like millimeters and inches. But on 
some devices, these values are false!

I have tested on some devices, and it appears that on HTC One X and HTC 
Wildfire, 10mm = 11/12mm... But on Nexus One, Nexus S, Galaxy S2 these 
sizes are right!

To do this, I use this code :

float pxCm = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_MM, 10,

  r.getDisplayMetrics());


Someone have already encounter this problem? If yes, how have you bypass 
this?


Thanks in advance

-- 
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