Android setOnMyLocationChangeListener is deprecated

爷,独闯天下 提交于 2019-12-08 14:42:17

问题


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


回答1:


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.




回答2:


FusedLocationProviderApi is now deprecated too. Try FusedLocationProviderClient.



来源:https://stackoverflow.com/questions/36444085/android-setonmylocationchangelistener-is-deprecated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!