android - Getting 0 item in beacon list in BeaconStream sdk -
below method in getting 0 item in beacon list. in "onbeaconsdiscovered" methods list size 0.
manager.setbeaconstreamranginlistener(new beaconstreammanager.beaconstreamranginglistener() { @override public void onbeaconsdiscovered(beaconstreamregion beaconstreamregion, hashmap<integer, list<beacon>> list) { if (!list.isempty()) { beacon nearestbeacon = list.get(0).get(0); list<string> places = placesnearbeacon(nearestbeacon); log.d("airport", "nearest places: " ); } else { toast.maketext(beaconactivity.this, "no beacon found", toast.length_short).show(); } } });
Comments
Post a Comment