【问题标题】:How to properly use Google API Client on Glass XE22如何在 Glass XE22 上正确使用 Google API 客户端
【发布时间】:2014-11-09 22:24:43
【问题描述】:

我目前正在尝试使用以下代码来创建 ApiClient 连接

mGoogleApiClient = new GoogleApiClient.Builder(this)
            .addApi(Wearable.API)
            .addConnectionCallbacks(this)
            .addOnConnectionFailedListener(this)
            .build();

mGoogleApiClient.connect();

但在

@Override
public void onConnectionFailed(ConnectionResult connectionResult) {
    Log.d(TAG, "Connection failed");
    mGoogleApiClient.reconnect();
}

我明白了:

ConnectionResult{statusCode=SERVICE_INVALID, resolution=null}

如果我没看错in the manual,这对应于 Play 的版本一开始就错误。

因此,我是否在正确连接 Glass 上运行代码时遗漏了某些内容,或者尚不支持此功能?

为了让您大致了解我想要做什么,我想实现this example

【问题讨论】:

    标签: google-glass google-gdk wear-os google-api-client


    【解决方案1】:

    Glass 目前不支持 Google Play 服务。这目前在我们的问题跟踪器中被跟踪为issue 176,因此您可以在以后关注它以获取更多信息。

    【讨论】:

    • 嗨托尼。感谢您的回答。然而,我已经看到,现在可以让 Glass 作为 Wear 设备连接到手机,并且推送通知将在两者之间很好地同步。我认为那是一个非常定制的构建解决方案吗?
    猜你喜欢
    • 1970-01-01
    • 2014-12-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-26
    • 1970-01-01
    • 2021-04-19
    • 1970-01-01
    相关资源
    最近更新 更多