Get real screen size (in inches)

In my game there is a table of cells that must be pressed by a user.

The table can be the size 6x6, 7x7, 8x8 and so on (it depends on the difficulty level).

But on small screens of phones at size of table 10x10 It is already difficult to get fingers in cells, but on tablets with a big screen it is still convenient to play at size of a game table 12x12 and more.

How can I determine the actual screen size (in inches)?

Look at system.getInfo():  https://docs.coronalabs.com/api/library/system/getInfo.html

For Android, there are multiple values that let you get DPI’s and other screen values.  For iOS, you will have to look at the device type and see if you’re an iPad or iPhone which can also be determined by calls to system.getInfo()

Rob

Thanks!

Look at system.getInfo():  https://docs.coronalabs.com/api/library/system/getInfo.html

For Android, there are multiple values that let you get DPI’s and other screen values.  For iOS, you will have to look at the device type and see if you’re an iPad or iPhone which can also be determined by calls to system.getInfo()

Rob

Thanks!