<Struggling with a list geofenceList in Kotlin> I ...
# stackoverflow
r
Struggling with a list geofenceList in Kotlin I tracked my problem down to adding to my geofenceList. Pleas help this is a global variable lateint var geofenceList: MutableList in onCreat I add to the list val latatude = -26.082586 val longatude = 27.777242 val radius = 10f geofenceList.add(Geofence.Builder() .setRequestId("Toets") .setCircularRegion(latatude,longatude,radius) .setExpirationDuration(Geofence.NEVER_EXPIRE) .setTransitionTypes(Geofence.GEOFENCE_TRANSITION_ENTER) .build()) Every time I run...