Detecting beacon and its UUID,major version,minor version on the go

Hello, I want to detect beacon with android sdk and get its UUID, major version, minor version. I dont want to hardcode UUID in app. All of the android-sdk example on github have UUID hardcoded in it. Can anyone please suggest me code snippet for this?

Check out my post here:

Out of curiosity, why do you want to discover all beacons, regardless of their UUID? It’s usually a good practice to assign a unique UUID to all your beacons and scan for that, as you ensure your app will only pick up your beacons, and not any random ones.