【发布时间】:2013-09-09 12:24:52
【问题描述】:
我有一个必须获取实际纬度和经度的应用程序。我正在尝试使用此处发布的代码:How do I get the current GPS location programmatically in Android? 类GPSTracker。
问题在于,有时获取位置太慢,有时获取的位置已过时。我不需要继续跟踪位置,我只需要在用户按下按钮时获取位置。谷歌的地图应用可以这么快,我该怎么做?
【问题讨论】:
-
setMyLocationEnabled(true) ?? setMyLocationButtonEnabled(true) ???
标签: android gps android-location