Android setOnMyLocationChangeListener is deprecated

Thiago picture Thiago · Apr 6, 2016 · Viewed 13.5k times · Source

Android Google Map's setOnMyLocationChangeListener method is now deprecated. Does anyone know how to go around it? Thanks.

Answer

IntelliJ Amiya picture IntelliJ Amiya · Apr 6, 2016

setOnMyLocationChangeListener method is Deprecated now.

You can use com.google.android.gms.location.FusedLocationProviderApi instead.

FusedLocationProviderApi which is the latest API and the best among the available possibilities to get location in Android.