Detect Device Density

Hi,

There is a way to detect device density in DPI?
I know there is a way to detect scale factor but I need a way to detect physical size of the screen (in inches).
In this way I can detect if device is a Tablet or a Phone (I know there is a way to detect device model but I can’t list all device in the world!)

Thank you for your reply.
Andrea [import]uid: 222190 topic_id: 36442 reply_id: 336442[/import]

Hi Andrea,
There’s not really a way to inherently detect DPI or physical dimensions of a screen. However, you can use the system.getInfo() API to detect various device properties. The following tutorial should help you with this:

http://www.coronalabs.com/blog/2012/12/11/device-detection-on-steroids/

Best regards,
Brent [import]uid: 200026 topic_id: 36442 reply_id: 144713[/import]

@andrea.torrisi please vote this feature here:
http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3577421-add-physical-screen-dimensions-info-to-system-geti
There are a lot of people requesting this. [import]uid: 138389 topic_id: 36442 reply_id: 144716[/import]

Hi Andrea,
There’s not really a way to inherently detect DPI or physical dimensions of a screen. However, you can use the system.getInfo() API to detect various device properties. The following tutorial should help you with this:

http://www.coronalabs.com/blog/2012/12/11/device-detection-on-steroids/

Best regards,
Brent [import]uid: 200026 topic_id: 36442 reply_id: 144713[/import]

@andrea.torrisi please vote this feature here:
http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3577421-add-physical-screen-dimensions-info-to-system-geti
There are a lot of people requesting this. [import]uid: 138389 topic_id: 36442 reply_id: 144716[/import]

Hi Andrea,
There’s not really a way to inherently detect DPI or physical dimensions of a screen. However, you can use the system.getInfo() API to detect various device properties. The following tutorial should help you with this:

http://www.coronalabs.com/blog/2012/12/11/device-detection-on-steroids/

Best regards,
Brent [import]uid: 200026 topic_id: 36442 reply_id: 144713[/import]

@andrea.torrisi please vote this feature here:
http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3577421-add-physical-screen-dimensions-info-to-system-geti
There are a lot of people requesting this. [import]uid: 138389 topic_id: 36442 reply_id: 144716[/import]

Hi Andrea,
There’s not really a way to inherently detect DPI or physical dimensions of a screen. However, you can use the system.getInfo() API to detect various device properties. The following tutorial should help you with this:

http://www.coronalabs.com/blog/2012/12/11/device-detection-on-steroids/

Best regards,
Brent [import]uid: 200026 topic_id: 36442 reply_id: 144713[/import]

@andrea.torrisi please vote this feature here:
http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3577421-add-physical-screen-dimensions-info-to-system-geti
There are a lot of people requesting this. [import]uid: 138389 topic_id: 36442 reply_id: 144716[/import]