Import sample code from https://github.com/RadiusNetworks/proximity-reference-android