【发布时间】: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