Although Google touts using the Nearground API to detect beacons around us:
A compatible API for Android and iOS makes it easy for apps to find and communicate with neighboring devices and beacons.
Source: http://android-developers.blogspot.be/2015/07/lighting-way-with-ble-beacons.html
I was unable to use the Nearground API to detect Eddystone beacons. I will describe all the information that I collected during my research, hoping that this can save some time.
I had the same code set up for you to identify Estimote beacons, but I could not find the service identifier to provide Nearby.Connections.startDiscovery() so that it would detect my beacon (I tried to use the beacon UUID and some options without success).
I found on the Estimote website that you need to update the beacon firmware to configure it as an Eddystone beacon: http://developer.estimote.com/eddystone/#configure-estimote-beacons-to-broadcast-eddystone . Mine was wrong, I did it.
However, this did not solve my problem, and I still could not detect the beacon using the API. I tried setting it as Eddystone-UID and the URL of Eddystone and tried several combinations (based on the information provided by the Estimote application) as the service identifier failed.
A deeper look at the documentation for a similar API shows that Google does not mention anything about lighthouses or Eddystone in its API documentation ( https://developers.google.com/nearby/connections/overview ) and the Google sample lighthouses do not use Nearby API: https://github.com/google/beacon-platform/tree/master/samples/android
However, they mention that “Nearby Messages” will allow for rich interaction, such as “co-editing, grouping, voting, or broadcasting a resource ” and will soon be:
Coming soon: Companion messaging API will be available on Google Play 7.8. This site will be updated with full API documentation when a new version is available.
Source: https://developers.google.com/nearby/
As I understand it, beacon support will be available in Google Play Services 7.8, as beacons transmit resources.
In the meantime, if you still want to detect the Eddystone beacons around you, you can use the Estimote Android SDK: https://github.com/estimote/android-sdk#quick-start-for-eddystone or implement the same code as Google Beacon Proximity Sample: https://github.com/google/beacon-platform/tree/master/samples/android