Skip to content

Instantly share code, notes, and snippets.

View shannah's full-sized avatar

Steve Hannah shannah

View GitHub Profile
@shannah
shannah / GeofenceListenerImpl.java
Last active June 4, 2021 12:15 — forked from codenameone/GeofenceListenerImpl.java
Sample usage of the Codename One geofence API to track location
public class GeofenceListenerImpl implements GeofenceListener {
@Override
public void onExit(String id) {
}
@Override
public void onEntered(String id) {
if(!Display.getInstance().isMinimized()) {
Display.getInstance().callSerially(() -> {
Dialog.show("Welcome", "Thanks for arriving", "OK", null);