I wrote a little app to collect screen data from real life testers and got the following for a Droid Razr :
Display Width (Inches) : 1.4671506447191
Display Height (Inches) : 2.6285148668069
X DPI : 368.06036376953
Y DPI : 365.22525024414
These readings appear to be wrong. Its a 4.3 inch diagonal phone with 256 ppi but the data above says its about 3 inches diagonal with the crazy ppi…
Ref http://www.phonearena.com/phones/Motorola-DROID-RAZR_id6026
Nothing fancy involved in my app. I simply declare the following variables and then print them out.
local androidDispWidthInInches = system.getInfo( “androidDisplayWidthInInches” ) or 0
local androidDispHeightInInches = system.getInfo( “androidDisplayHeightInInches” ) or 0
local androidDispXDpi = system.getInfo( “androidDisplayXDpi” ) or 0
local androidDispYDpi = system.getInfo( “androidDisplayYDpi” ) or 0
So in a nutshell, I had high hopes for this new API but seems like there will be some teething pains. Any ideas on what is wrong?
Thanks much for your urgent attention.
Regards,
Kerem

