Basic geometry, works if...
This works by knowing the height (you input) and the angle (from you "aiming" down the side/edge of your phone). As some mentioned this is only accurate on flat land and most appropriate for bow hunting (shorter distances), but if these apply to it works fine.
Stevalgrl about
Legends of the Fall RangeFinder Shooting Utility for Hunting