I am using a WearableListenerService
on the handheld to retrieve data for the wearable. I recently updated my code, and switched from sending a large set of DataMap
objects to a single DataMap
holding a byte array.
The code was working, but as I continued testing, I started getting an empty byte array on the wearable. This is a case that I allowed, but I checked the DataMap
on the handheld and it is sending data.
So I switched the code on the handheld and wearable back to the old implementation of a set of DataMap
objects. The device is sending the correct data, but the wearable throws a java.lang.ClassCastException
, stating a byte[] cannot be cast to java.lang.String
. So the wearable is still getting the empty byte array that I had been getting previously.
I am testing on the wearable emulator, and I do not have a physical device to test on. Am I doing something wrong? Is there any way to make sure the Data Layer has updated data?