1

即使应用程序在后台运行,是否有办法跟踪 gps 位置?

4

1 回答 1

2

是的,在那里创建Service并请求位置更新。这应该为您指明正确的方向: http: //niravranpara.blogspot.se/2013/04/android-get-current-gps-location.html

@Override
public void onLocationChanged(Location location) {
    // here you get location updates
    // the link I gave you doesn't tell u that, but it is obvious?
}
于 2013-09-17T13:53:47.903 回答