onDataChanged() not being called on android wear

前端 未结 1 969
再見小時候
再見小時候 2021-01-28 07:23

I\'m trying to use Data Items to send a few strings through to my wear, but my wear never seems to receive any signal, because onDataChanged() is never called. I even set a time

相关标签:
1条回答
  • 2021-01-28 08:09

    In sendData(), your conditional seems to be incorrect; mGoogleApiClient != null is true so you exit right there. Address that and see whether you can get any further; there might be other issues but that is the first obvious one. If that didn't completely fix your issue, then make sure you also include the manifest on your phone in your post.

    0 讨论(0)
提交回复
热议问题