You can determine the display’s physical dimensions (in inches) via our system.getInfo() API…
http://docs.coronalabs.com/api/library/system/getInfo.html
First, a word of warning. Properties “androidDisplayWidthInInches” and “androidDisplayHeightInInches” have been known to return the wrong values on some devices. We believe this to be a firmware bug where sometimes manufacturers have simply set these values wrong or forgot to set them. It’s an issue that effects all native Android developers, making it impossible to tell what the physical screen sizes in inches reliably for all devices.
So, I recommend that you use the “androidDisplayApproximateDpi” property instead. This returns a hard coded DPI value for devices designated as ldpi, mpdi, hdpi, xhdpi, etc. It’s the only reliable means of fetching the DPI from all Android devices, with the only shortcoming is that it’s not accurate. It is merely a rough estimate. But this is as good as it gets on Android.
You can then calculate the approximate dimensions of the screen in inches as follows…
local approximateDpi = system.getInfo("androidDisplayApproximateDpi") local widthInInches = display.pixelWidth / approximateDpi local heightInInches = display.pixelHeight / approximateDpi
I hope this helps!