Android位置与Google Play服务相关 [英] Android location vs Google Play Services

查看:191
本文介绍了Android位置与Google Play服务相关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序使用了这两种方法,并且正如我们所料,我发现Google Play服务不仅更加准确,而且更加稳定和快速。然而,我的问题是这是为什么。我已经阅读了Android位置和Google Play服务在这里和那里的一些区别,但我想了解更多关于使用的底层技术以及性能差异如此巨大的原因。



我希望有人可以分享有关信息的文章或分享他或她自己的知识。提前致谢!

解决方案

Dhruvam Gupta 辛格提供的问题:

Google位置服务API是Google Play服务的一部分,它提供了一个更强大的高级框架,可自动处理位置提供商,用户移动和位置准确性。它还根据您提供的功耗参数处理位置更新调度。在大多数情况下,通过使用位置服务API,您可以获得更好的电池性能以及更准确的性能。



Google Play的两款apis更详细的区别可以找到服务位置API和Android Framework位置API 这里


I've used both methods for my application and as expected I found Google Play Services to not only be more accurate but also a lot more stable and quicker. My question however is to why this is. I've read some differences between Android location and Google Play Services here and there, but I'd like to learn more about the underlying technologies used and why there is such a great difference in performance.

I hope someone can share an article with relevant information or share his or her own knowledge. Thanks in advance!

解决方案

Answer from Dhruvam Gupta on the question Singh provided:

The Google Location Services API, part of Google Play Services, provides a more powerful, high-level framework that automatically handles location providers, user movement, and location accuracy. It also handles location update scheduling based on power consumption parameters you provide. In most cases, you’ll get better battery performance, as well as more appropriate accuracy, by using the Location Services API.

More detailed differences between the two apis Google Play Service Location API and Android Framework Location API can be found here

这篇关于Android位置与Google Play服务相关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆