简体   繁体   English

android服务获取当前位置

[英]android services to get current location

I have started work on app that requires user's current location. 我已经开始研究需要用户当前位置的应用程序。 I looked for some services for this. 我为此寻找了一些服务。 I got Android Location Service ( link1 , link2 ) and skyhook sdk. 我得到了Android定位服务( link1link2 )和skyhook sdk。 Does anyone know which one is better and stable? 有谁知道哪个更好更稳定? Please recommend me one. 请推荐我一个。

For receiving location info you can use standard api (your link1 and link2). 要接收位置信息,您可以使用标准api(您的link1和link2)。 But strategies of receiving depends on what you need, get location or listen location. 但是接收策略取决于您的需求,获取位置或收听位置。
You also can look at this android training . 您还可以查看此android培训 In this training you can see how to use new Location api provided by Google in google services lib. 在本培训中,您可以了解如何使用Google在Google Services库中提供的新Location api。 This lib provide a lot of features details of which you can find here . 该库提供了许多功能详细信息,您可以在此处找到。
If you have simple location acquiring logic - best way to use standard apis (like in link1 and link2). 如果您具有简单的位置获取逻辑-使用标准api的最佳方法(如link1和link2)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM