Skip to content

Instantly share code, notes, and snippets.

View romancanoniero's full-sized avatar

romancanoniero

View GitHub Profile
@romancanoniero
romancanoniero / GeofenceListenerImpl.java
Created April 9, 2017 02:38 — 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);