gpt4 book ai didi

android - 如果用户使用较旧版本的 Google Play 服务,使用较新版本的 Google Play 服务的功能会使应用程序崩溃吗?

转载 作者:搜寻专家 更新时间:2023-11-01 08:40:24 26 4
gpt4 key购买 nike

我想使用 Google Play 服务的新人脸检测功能,它已在 7.8 版本中引入。我想知道如果我发布我的应用程序,它能在装有旧版 Google Play 服务的手机上运行吗?如果不能,它会崩溃还是?

最佳答案

GoogleApiAvailability 中的函数类。

Helper class for verifying that the Google Play services APK is available and up-to-date on this device

使用 isGooglePlayServicesAvailable 方法。

public int isGooglePlayServicesAvailable (Context context)

Verifies that Google Play services is installed and enabled on this device, and that the version installed on this device is no older than the one required by this client.

如果需要,可以使用 isUserResolvableErrorgetErrorDialog 方法从 Play 商店安装最新版本。

关于android - 如果用户使用较旧版本的 Google Play 服务,使用较新版本的 Google Play 服务的功能会使应用程序崩溃吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33168475/

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