问题
Android Google Map's setOnMyLocationChangeListener method is now deprecated. Does anyone know how to go around it? Thanks.
回答1:
setOnMyLocationChangeListener method is now.Deprecated
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.
回答2:
FusedLocationProviderApi is now deprecated too. Try FusedLocationProviderClient.
来源:https://stackoverflow.com/questions/36444085/android-setonmylocationchangelistener-is-deprecated