LocationClient VS LocationManager [英] LocationClient vs LocationManager

查看:181
本文介绍了LocationClient VS LocationManager的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之间的区别是什么 LocationClient LocationManager

什么是它们之间的优劣(如电池,精度)?

What is the pros and cons between them (like battery, accuracy)?

这是更好地使用?

推荐答案

位置管理器中引入了Android SDK和可以作为机器人的功能。

Location Manager was introduced in Android SDK and can be used as a feature of android.

位置客户端的东西,是谷歌的一部分,播放SDK,并在最近的谷歌IO 2013年推出。

Location Client is something that's part of Google Play SDK and is introduced in the recent Google IO 2013.

人们能够理解,由于位置的客户端是最新的,它是在以最小的能源(电池漏极)以更大的精确度获得的位置更高效

One can understand that since Location Client is the latest, it is more efficient in getting the location with minimal energy(battery drain) with greater accuracy.

更新: LocationClient 是pcated德$ P $。你必须使用<一个href="https://developer.android.com/reference/com/google/android/gms/common/api/GoogleApiClient.html"相对=nofollow> GoogleApiClient 。它的一个例子可发现<一href="http://stackoverflow.com/questions/24611977/android-locationclient-class-is-de$p$pcated-but-used-in-documentation">here.

UPDATE: LocationClient is deprecated. You have to use GoogleApiClient. An example of it can be found here.

谷歌播放服务团队已经清理了他们的code和移动LocationClient功能集成到GoogleApiClient。

Google Play Services Team has cleaned up their code and moved LocationClient functionality into GoogleApiClient.

教程同样是可用 http://developer.android.com/training/location/retrieve-current.html

在下面的链接,你可以找到IO谈论这个主题 http://www.youtube.com/watch?v=Bte_GHuxUGc

On following link you can find IO talk about this subject http://www.youtube.com/watch?v=Bte_GHuxUGc

这篇关于LocationClient VS LocationManager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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