android - 为什么位置服务是 Google Play 服务 APK 的一部分?

标签 android location google-play-services user-activity

我知道定位服务是 Google Play 服务 APK 的一部分。

我已浏览以下有关位置更新的链接。

http://developer.android.com/training/location/receive-location-updates.html#PlayServices

我需要澄清以下事项才能使用 Google Play 服务 - 位置更新或用户 Activity 识别。

o   Why the Google play store needs to be installed to get the location update or user activity status. 
o   Why the required functionality is not integrated with android SDK. 

请帮我解决这个问题。

最佳答案

您也可以查看此链接, Overview of Google Play Services

Q1。为什么需要安装 Google Play 商店才能获取位置更新或用户 Activity 状态。

Google Play services APK contains the individual Google services and runs as a background service in the Android OS. You interact with the background service through the client library and the service carries out the actions on your behalf.

Q2.为什么需要的功能没有集成到android SDK中?

Google Play services gives you the freedom to use the newest APIs for popular Google services without worrying about device support. Updates to Google Play services are distributed automatically by the Google Play Store and new versions of the client library are delivered through the Android SDK Manager. This makes it easy for you to focus on what's important: your users' experience.

关于android - 为什么位置服务是 Google Play 服务 APK 的一部分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26994040/

相关文章:

android - 在您的项目中找到 Firebase Unity Android : No google-services. json 文件

java - 将依赖项写入主日志文件

java - 使用 SimpleCursorAdapter 保留 highlite 列表项

Android Studio GeoDataClient无法解析

Android OSS 许可证插件在点击菜单项时崩溃

android - gradle、插件和sdk版本兼容性

java - 使用 StreamSupport 库时 Dex 失败

android - 单击单个联系人时应用程序崩溃

ios - 在 iOS (Swift) 中使用后台位置更新的最佳方式

php - header 位置不适用于实时服务器,但适用于本地主机