Skip to content

Instantly share code, notes, and snippets.

@markchristopherng
Created October 13, 2018 02:01
Show Gist options
  • Save markchristopherng/9fd17b227f36546e5542f8ad5ea1ea5c to your computer and use it in GitHub Desktop.
Save markchristopherng/9fd17b227f36546e5542f8ad5ea1ea5c 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