如何编写后台服务来获得经纬度?

时间:2010-09-04 04:57:19

标签: android geolocation gps latitude-longitude

我需要编写后台服务来获取纬度和经度值。我有一个Android应用程序,它必须找到用户当前的位置。有没有办法以编程方式从系统服务(或某些程序)获取纬度和经度值?

1 个答案:

答案 0 :(得分:1)

使用LocationManagerdocumentation涵盖了这一点。