I run ranging example in android but I just see a string Nearest places: [Heavenly Sandwiches, Green & Green Salads, Mini Panini]?

It don’t show imformation follow distance Far: Haevenly, Near: sandwiches, Immediate: Green & Green Salads as in theory. How I can make it ranging as IOS ?

The Android tutorial doesn’t actually rely on the proximity zones. If you want to know how close to a beacon you are, you need to modify the onBeaconsDiscovered method:

public void onBeaconsDiscovered(Region region, List<Beacon> list) {
        if (!list.isEmpty()) {
            Beacon nearestBeacon = list.get(0);

            // ---------------------------------------------------------
            // add this line:
            Log.d("Airport", "Nearest beacon's proximity zone: " 
                    + Utils.computeProximity(nearestBeacon).toString());
            // ---------------------------------------------------------

            List<String> places = placesNearBeacon(nearestBeacon);
            // TODO: update the UI here
            Log.d("Airport", "Nearest places: " + places);
1 Like

Thank heypoitr very much. I got that :grinning:

1 Like

2 posts were split to a new topic: Android iBeacon tutorial and Estimote Stickers