WearableListenerService, onDataChanged() is not called

前端 未结 7 938
野趣味
野趣味 2020-12-11 01:05

I followed the tutorial to invoke a Wearable activity from phone, posted here How to send notification from handheld to wear to open Activity on wear device. However, I grab

7条回答
  •  粉色の甜心
    2020-12-11 01:23

    after onDataChanged method, I am forcing

    onDataChanged(DataEventBuffer dataEvents) {

    --doDataStuff---

    mGoogleApiClient.disconnect(); mGoogleApiClient.connect();

    }

    only with this setting the onDataChanged is working for me.

提交回复
热议问题