Distance demo needed

How can I get the distance from a beacon on my application, is there any example code for this or the source code which I can get to learn about this feature

Take a look at the DistanceBeaconActivity:


from our Android demos:


What happened to this demo? I know beacon accuracy is notoriously inaccurate, but a demo would have been good to see.