Search code examples
androidgoogle-maps-api-2android-geofence

Using Geofence with google api v2 in android


I am trying to create the Geofence in google location api-V2 But class LocationClient is not found in the latest version of google location library.

Is there any way to use Geofence with google api-V2


Solution

  • Can't you just use the GeoFence api? https://developer.android.com/reference/com/google/android/gms/location/Geofence.html, https://developer.android.com/reference/com/google/android/gms/location/GeofencingApi.html Otherwise here's a thread on the deprecation of LocationClient: Android LocationClient class is deprecated but used in documentation