LocationListener in fragment

微笑、不失礼 提交于 2019-12-05 07:26:29

I think you have mistakenly implemented com.google.android.gms.location.LocationListener interface that has just one 1 abstract method onLocationChanged

You should rather implement android.location.LocationListener that has 4 abstract methods

onLocationChanged(Location location),

onProviderDisabled(String provider),

onProviderEnabled(String provider),

onStatusChanged(String provider, int status, Bundle extras)

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