I have search around the web but no luck. Everywhere there is a solution available for the mobile device only not from the wear. I just want to check from the wear that any android device is connected or not.
Asked
Active
Viewed 770 times
1
-
What's the use case for this? The usual solution is to use the Capability API to detect if a handheld *with your app* is connected; would that work for you? – Sterling Jun 19 '16 at 04:56
-
1@String Thanks for the response. The case would be to save data in the watch when it's goes offline and than sync with device when connected(online). – android_griezmann Jun 20 '16 at 05:28
-
If you're going to "sync with device when connected", that probably means that you do have an app installed on the handheld, correct? – Sterling Jun 20 '16 at 16:49
-
@String That is correct! – android_griezmann Jun 21 '16 at 06:27
1 Answers
0
Given you have an app installed on the handheld that you're trying to detect, you can use the Capability API to be notified when the connection is made or broken. There's a good walkthrough here: https://developer.android.com/training/wearables/data-layer/messages.html#SendMessage

Sterling
- 6,365
- 2
- 32
- 40