Android Wearable Message API 根本不起作用
Android Wearable Message API does not work at all
我在移动(手持)和可穿戴设备之间尝试了一些 basic communication tutorial,但它根本不起作用。每当我检查 sendMessage 的结果时,它都会显示 SUCCESS
但 receiver 从未被调用。
我还将已弃用的 com.google.android.gms.wearable.BIND_LISTENER
更改为 com.google.android.gms.wearable.DATA_CHANGED
和 com.google.android.gms.wearable.MESSAGE_RECEIVED
但它仍然无法正常工作。
此日志是否与此现象有关?
06-04 23:34:00.625 2789-2805/com.ptrprograms.wearmessageapi W/GooglePlayServicesUtil: Google Play services out of date. Requires 9080000 but found 8701534
(但是,我唯一的可穿戴设备支持 Google Play Service 到 8.7.01,我无法从世界任何地方下载 8.7.01 的 SDK)
这是因为应用程序从未调用过GoogleApiClient的连接方法,例如googleApiClient.connect()
和googleApiClient.blockingConnect()
。但是,在调查该问题时,我创建了一些 working skeleton app for Android Wearable Messaging API。 *我还通过将 Play-Service-Wearable 的版本设置为“7.5.0”解决了过时的警告。
我在移动(手持)和可穿戴设备之间尝试了一些 basic communication tutorial,但它根本不起作用。每当我检查 sendMessage 的结果时,它都会显示 SUCCESS
但 receiver 从未被调用。
我还将已弃用的 com.google.android.gms.wearable.BIND_LISTENER
更改为 com.google.android.gms.wearable.DATA_CHANGED
和 com.google.android.gms.wearable.MESSAGE_RECEIVED
但它仍然无法正常工作。
此日志是否与此现象有关?
06-04 23:34:00.625 2789-2805/com.ptrprograms.wearmessageapi W/GooglePlayServicesUtil: Google Play services out of date. Requires 9080000 but found 8701534
(但是,我唯一的可穿戴设备支持 Google Play Service 到 8.7.01,我无法从世界任何地方下载 8.7.01 的 SDK)
这是因为应用程序从未调用过GoogleApiClient的连接方法,例如googleApiClient.connect()
和googleApiClient.blockingConnect()
。但是,在调查该问题时,我创建了一些 working skeleton app for Android Wearable Messaging API。 *我还通过将 Play-Service-Wearable 的版本设置为“7.5.0”解决了过时的警告。