Skip to content

Instantly share code, notes, and snippets.

@markchristopherng
Created October 13, 2018 01:37
Show Gist options
  • Save markchristopherng/eb0c2b6b1e2c106ffd9f26bd94113551 to your computer and use it in GitHub Desktop.
Save markchristopherng/eb0c2b6b1e2c106ffd9f26bd94113551 to your computer and use it in GitHub Desktop.
Intent intent = new Intent(FENCE_RECEIVER_ACTION);
intent.setClass(context, GeoFenceAwarenessReceiver.class);
// Creates pending intent to handle geo fence event
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, FENCE_REQUEST_CODE, intent, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment