Context:
I am trying to create an app that is able to use real world dimensions. In my particular case, it is OK if it's not 100% accurate; however, the more accurate the better.
For example: If I am trying to display a 3cm wide square and in actuality I display a 2.8cm wide square, that is acceptable.
Problem:
While there appears to be ways to get a screen's width & height in pixels, there is no way to get either the screen DPI or the screen's width & height in cm/in.
My Question: How can I get or calculate the screen's DPI? If this isn't possible, is there another way to try and use a real world measurement?