Can I get the actual screen size?

Hello,

Is there any way to get the actual screen size in inches or whatever measurement used? I am wanting to show some images but only one at a time if the screen is on a phone rather than a tablet. So I wanted to see if I can find the size of the screen.

Thanks!
[import]uid: 184193 topic_id: 35673 reply_id: 335673[/import]

I did find display.actualContentHeight but is that the actual screen size? It says it is returned in corona units. What is that? Inches or what?

Thanks!!
[import]uid: 184193 topic_id: 35673 reply_id: 141862[/import]

You can get the actual display width and height in pixels using:

display.pixelWidth
display.pixelHeight [import]uid: 153562 topic_id: 35673 reply_id: 141864[/import]

Thanks but I do not want pixels. That does not tell me the actual size of the screen in inches.

Does anyone know if this is possible?

Thanks
[import]uid: 184193 topic_id: 35673 reply_id: 141867[/import]

There is no way to get the “inches” of the device that I’m aware of. [import]uid: 199310 topic_id: 35673 reply_id: 141919[/import]

What I am doing is displaying images for a dashboard and I’m trying to determine if I need to display one at a time for a phone or a group on a larger screen such as a tablet. So I think I’ll make it a setting on the app itself so how 1, 2 or 4 images at a time and let them touch one to view it individually if needed.

Thanks,

Warren
[import]uid: 184193 topic_id: 35673 reply_id: 142085[/import]

I did find display.actualContentHeight but is that the actual screen size? It says it is returned in corona units. What is that? Inches or what?

Thanks!!
[import]uid: 184193 topic_id: 35673 reply_id: 141862[/import]

You can get the actual display width and height in pixels using:

display.pixelWidth
display.pixelHeight [import]uid: 153562 topic_id: 35673 reply_id: 141864[/import]

Thanks but I do not want pixels. That does not tell me the actual size of the screen in inches.

Does anyone know if this is possible?

Thanks
[import]uid: 184193 topic_id: 35673 reply_id: 141867[/import]

There is no way to get the “inches” of the device that I’m aware of. [import]uid: 199310 topic_id: 35673 reply_id: 141919[/import]

What I am doing is displaying images for a dashboard and I’m trying to determine if I need to display one at a time for a phone or a group on a larger screen such as a tablet. So I think I’ll make it a setting on the app itself so how 1, 2 or 4 images at a time and let them touch one to view it individually if needed.

Thanks,

Warren
[import]uid: 184193 topic_id: 35673 reply_id: 142085[/import]