-1

I want to call a method in when the user has exited the geofence radius, I'm not entirely sure how to go about that. It seems I have to work with GeofenceTransitionsIntentService(), but all I'm finding is outdated code

Alex oladele
  • 69
  • 11
  • How hard did you look? The API docs have a full fledged example on how to do this. Simply use a conditional to check `geofenceTransition == Geofence.GEOFENCE_TRANSITION_EXIT` in the `onHandleIntent` of your Geofence Service: https://developer.android.com/training/location/geofencing.html – Chris Stillwell Jul 15 '16 at 19:36
  • I'm stupid, and this was actually it. I wish I could mark it as the answer! Thanks for the help – Alex oladele Jul 17 '16 at 00:23

1 Answers1

0

The API docs have a full fledged example on how to do this. Simply use a conditional to check geofenceTransition == Geofence.GEOFENCE_TRANSITION_EXIT in the onHandleIntent of your Geofence Service: developer.android.com/training/location/geofencing.html

Alex oladele
  • 69
  • 11