I recently got a lighthouse from Kontakt.io
I followed the “monitoring code example” here: http://docs.kontakt.io/android-sdk/quickstart/#monitoring-code-sample
The Kontakt library is included (as other methods from the library work), but the following line gives me an error:
beaconManager.startMonitoring(Region.EVERYWHERE);
Error:
startMonitoring (java.util.Set<com.kontakt.sdk.android.device.Region>) in BeaconManager
cannot be applied to (com.kontakt.sdk.android.device.Region)
I also tried to create a new area with the closest uuid from the lighthouse:
static UUID uid = UUID.fromString("1DEFF9522D014664BB6088F065302B83");
private static final Region beacon = new Region(uid, 49668, 35726, null);
but it causes the same error.
I am new to java and this may be a pretty simple question, but how can I solve this?
source
share