I'm following the android wear documentation to send messages from one device to another (https://developer.android.com/training/wearables/data-layer/messages.html)
but I think there's some error in the examples because the send message method throws an IllegalStateException with the following message: await must not be called on the UI thread
How can I fix it?