I'm a beginner of android development and I'm currently under a project of doing some proximity work. Our aim is to measure the distance between an Android phone and an object using bluetooth technology. I did find some sample codes on stack overflow, and here is the link, but it doesn't really work on my device (android 5.0). It can be installed but it cannot open bluetooth and return back RSSI values when I click on the button.
I'm wondering if there is any good sample codes that would detect the distance between a phone and an object (bluetooth enabled) It will be better if the codes can start the bluetooth pairing user interface then pair with the object, and then return the distance indicator values (like RSSI) of the specifically paired object.
Thank you sincerely for the help.