Skip to content Skip to sidebar Skip to footer

Making Wearablelistenerservice Ondatachanged() Call On Every Putdatamaprequest

I want WearableListenerService to call onDataChanged() every time I make a request. I am aware that onDataChanged() is only called, well, on data change and not every time. I can a

Solution 1:

You might be able to turn the situation around a bit. As you say, onDataChanged is only called whenever there's a change and you should probably keep handling that.

Whenever you need to know the current value you can use one of the Wearable.DataApi.getDataItem(s) methods as described on https://developer.android.com/reference/com/google/android/gms/wearable/DataApi.html .

Post a Comment for "Making Wearablelistenerservice Ondatachanged() Call On Every Putdatamaprequest"