Android setOnMyLocationChangeListener已弃用 [英] Android setOnMyLocationChangeListener is deprecated

查看:1541
本文介绍了Android setOnMyLocationChangeListener已弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android Google Map的 setOnMyLocationChangeListener 方法现在已被弃用。
有人知道如何去解决它吗?感谢。

解决方案

android / gms / maps / GoogleMap.OnMyLocationChangeListenerrel =nofollow noreferrer> setOnMyLocationChangeListener 现已弃用 您可以使用 com.google.android.gms.location.FusedLocationProviderApi $ b


FusedLocationProviderApi这是最新的API和最好的$之间的$最好的 。 b $ b获取Android位置的可能性。



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

解决方案

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.

这篇关于Android setOnMyLocationChangeListener已弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆