Introducing XDA:DevCon – A Conference For Developers By Developers Remember Me? Forgot your password?
 Portal Forum Wiki XDA TV Quick Links
 Print Email

# [Q] Native Pixel Density

Tip us?

Major_Sarcasm
(Last edited by Major_Sarcasm; 30th July 2011 at 12:24 AM.) Reason: Slight adjustment due to correct size of screen info
Senior Member - OP
Thanks Meter 183
Posts: 752
Join Date: Jan 2009
Location: South Coast, UK
[Q] Native Pixel Density

So, I've messed around with pixel density on my HD2 and now my SGS2 as well. One thing has always intrigued me; what is the native pixel density of these screens (given that the HD2 and the SGS2 share size/res).

So I worked it out thus (robbed straight from wikipedia):

1. Calculate diagonal resolution in pixels using the Pythagorean theorem:

2. Calculate PPI:

where

dp is diagonal resolution in pixels,
wp is width resolution in pixels,
hp is height resolution in pixels and
di is diagonal size in inches

So, the diagonal resolution is: 933 = square root of ((480x480)+(800x800))
The native pixel density should be 218.5 = (933 / 4.27)

Does that make sense to anyone or am I barking completely up the wrong tree? Maths never was my strong point

The above also assumes that the screen is exactly 4.3 inches diagonally.

Edit: This page shows the screen to be 4.27". Info amended above. Calculations checked and wiki info confirmed. Might change my pixel density to 218/219
Steve - Nexus 4 (CM10.1) & Nexus 7 (CM10.1)
Quote:
 Originally Posted by XEURONIX Is there possible to install an iOS 4 on the Android. So it will be the same as on iPhone.
If I made you laugh or I helped you in some way, click the 'Thanks' button.
If I upset you or made you cry, get a grip; this isn't real life! It's XDA Developers!
 mdalacu 29th July 2011, 08:18 PM (Last edited by mdalacu; 29th July 2011 at 08:21 PM.) Senior Member Thanks Meter 150 Posts: 787 Join Date: Dec 2006 Location: Bucharest More Info > You are right, that is the native screen dpi. But, I think, that applications that are running in 800x480 are designed with 240 dpi as standard. Dpi is nothing more that a constant of the device provided to applications for calculations of text font size and layout of controls . That is my guess and I find comfortable a dpi of 200 for this device. See what happens in windows when you change system font size (dpi)! History: Orange SPV c500, Qtek S200, HTC P3600, HTC Diamond, HTC TouchPro, HTC TouchPro 2, HTC HD2, Samsung Galaxy S, HTC DHD, Samsung Galaxy S2, Samsung Galaxy Note, Asus TF201, Samsung Galaxy Note 10.1, Samsung Galaxy Note 2. REPLY
 joshuaauger 29th July 2011, 08:21 PM Senior Member Thanks Meter 21 Posts: 129 Join Date: Aug 2010 http://en.wikipedia.org/wiki/List_of..._pixel_density Pixel density of ~2.18 as the screen is really 4.27 REPLY
 The Following 2 Users Say Thank You to joshuaauger For This Useful Post: [ Click to Expand ]

Major_Sarcasm
Senior Member - OP
Thanks Meter 183
Posts: 752
Join Date: Jan 2009
Location: South Coast, UK
Yes, thank you. That was the info I was missing: the exact size of the screen. I will edit my original post.
Steve - Nexus 4 (CM10.1) & Nexus 7 (CM10.1)
Quote:
 Originally Posted by XEURONIX Is there possible to install an iOS 4 on the Android. So it will be the same as on iPhone.
If I made you laugh or I helped you in some way, click the 'Thanks' button.
If I upset you or made you cry, get a grip; this isn't real life! It's XDA Developers!