Get dpi of screen to calculate dip scale?

I need to know the dpi of Android screens to calculate screen size and dip scale from the device resolution. I see from searching that this wasn’t available in the past, but I was wondering if that has changed.

Is there any solution that doesn’t involve compiling a list of known devices?

Thanks in advance for any pointers.

Have you seen: https://docs.coronalabs.com/api/library/system/getInfo.html#androiddisplayxdpi

Rob

No, my google-fu had not taken me there - that’s what I am looking for, thanks! It’s a shame the simulator doesn’t return the dpi values of the devices being simulated. Still, it’s a much smaller list

Have you seen: https://docs.coronalabs.com/api/library/system/getInfo.html#androiddisplayxdpi

Rob

No, my google-fu had not taken me there - that’s what I am looking for, thanks! It’s a shame the simulator doesn’t return the dpi values of the devices being simulated. Still, it’s a much smaller list