android地图刷新按钮/菜单选项?

android地图刷新按钮/菜单选项?,android,google-maps,Android,Google Maps,我可以知道如何实现按钮或菜单选项以立即更新mapview上的用户位置,例如刷新按钮吗?多谢各位 您可以实现android.location.LocationListener接口 这将跟踪用户的当前位置 单击鼠标,您可以从此侦听器调用最后一个位置 LocationManager LocationManager=(LocationManager)getSystemService(Context.LOCATION\u服务); locationManager.RequestLocationUpdate(

我可以知道如何实现按钮或菜单选项以立即更新mapview上的用户位置,例如刷新按钮吗?多谢各位

您可以实现android.location.LocationListener接口 这将跟踪用户的当前位置

单击鼠标,您可以从此侦听器调用最后一个位置

LocationManager LocationManager=(LocationManager)getSystemService(Context.LOCATION\u服务); locationManager.RequestLocationUpdate(locationManager.GPS_提供程序,1l,100,locationListener)