【发布时间】:2014-06-02 14:57:49
【问题描述】:
我是 android 新手,我正在研究开发一个需要获取用户位置的应用。
我创建了一个service 来使用LocationManager 获取用户的位置并将该位置发送到activity。我现在正在研究开发一个使用Google Play Services 来获取当前位置的service。我认为Google Play service 将能够提供更好的精度和省电。
我查看了Google training 上的培训和示例代码。看起来使用Google Play service 需要在activity 上实现,因为Google Play service 使用startResolutionForResult() 和onActivityResult() 使用活动。
在service 上实现Google Play service 是不可能的吗?
【问题讨论】:
标签: android service geolocation location google-play-services