gpt4 book ai didi

android - ActivityRecognition API 可以在没有数据连接的情况下工作吗?

转载 作者:太空狗 更新时间:2023-10-29 16:35:44 25 4
gpt4 key购买 nike

我希望使用 Google Play 服务 ActivityRecognition API作为 Android 应用程序的一部分,该应用程序的大部分使用都将处于离线状态;用户通常会出门在外,并且无法保证数据连接。

查看文档,requestActivityUpdates方法需要连接的 GoogleApiClient

我的问题是,如果没有数据连接, Activity 识别 API 是否保证工作?

最佳答案

当然它可以在没有数据连接的情况下工作。

Google Play services基本上是在 Android 操作系统中运行的后台应用程序。因此,通过请求连接到 GoogleApiClient,您将连接到此 Google Play 服务应用。

据说 Google Play 服务 apk 会静默更新,但是最好检查它是否更新到最新版本,因为有时服务无法更新(我只在 Android 2.3 上发生过)。

关于android - ActivityRecognition API 可以在没有数据连接的情况下工作吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29474600/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com