TheRedOne
TheRedOne

Reputation: 105

Sending data from android watch to smart phone

I have developed two android apps - one in watch and one in smart phone. The watch app can recognize a set of gestures and display them in watch as well as in phone(via bluetooth).

Since the gesture name is sent to the phone app via bluetooth, there is a small delay in displaying the gesture name in the phone. Sometimes it doesn't even show it in the phone app even though the watch displays the recognized gesture correctly. I did this by creating a socket and data is sent through I/O streams.

So I would like to improve the lag and make the gesture name getting displayed in the phone app very fast. What are the methods in which I can do this? Thanks in advance.

Upvotes: 2

Views: 1145

Answers (1)

Ali Naddaf
Ali Naddaf

Reputation: 19084

The fastest method to send such information from one node to another is using the MessageApi#sendMessage(); that has the least overhead and should work well for your case.

Upvotes: 1

Related Questions