Questions tagged [android-wear-data-api]

The Wearable Data Layer API, which is part of Google Play services, provides a communication channel for your handheld and wearable devices.

About

The API consists of a set of data objects that the system can send and synchronize over the wire and listeners that notify your apps of important events with the data layer.

Dependencies

  • Android 4.3 (API Level 18) or higher on the handheld device
  • Android 4.4W (API Level 20) or higher on the Android Wear device
  • Google Play services version 5.0 or higher
  • An Android Wear device or Wear AVD

Links

288 questions
2
votes
0 answers

Android WearableListenerService isn't detecting if peer connect or disconnect

I created class "CommunicationService" it extends WearableListenerService. I modify my manifest and added service with this action: android:name="com.google.android.gms.wearable.BIND_LISTENER" I overrided onPeerDisconnected and onPeerConnected…
TomazStoiljkovic
  • 808
  • 8
  • 21
2
votes
0 answers

import android.support.wearable.view.WatchViewStub cannot be resolved

I have eclipse and i have followed this link: but still the import "WatchViewStub" and "DismissOverlayView" cannot be resolved Note ElizaChat sample wearable app is working for me . so why WatchViewStub sample is not working ? what's missing ?
user987760
  • 1,061
  • 3
  • 12
  • 26
2
votes
2 answers

Android Wear MessageAPI - can't send messages on UI Thread

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…
basteez
  • 477
  • 1
  • 5
  • 15
2
votes
2 answers

Issue with Android Wear Message API

I m trying to use the new android wear comms API, specifically the Message API to which end I have an Activity plus a service in my watch application and an Activity as the test app in the phone. I have comms working fine in both directions and I…
Boo
  • 165
  • 2
  • 11
2
votes
1 answer

Uniquely identify Android Wear device

What would be the best way to uniquely identify a specific Wear-device? I'd like to store a preference per device on the phone and thus need an identifier that is static. I would expect that the NodeId is assigned dynamically (and changes after each…
Nick
  • 3,504
  • 2
  • 39
  • 78
2
votes
0 answers

Noticeable lag while connecting to Google Play Services in Android Wear

Problem: There is a noticeable delay - of around 40-50+ seconds, from the time the application is launched on the wearable to the point the DatalayerService is started. Evidence: 09-15 10:19:09.594 455-475/? I/ActivityManager﹕ Displayed…
rmoh21
  • 1,405
  • 6
  • 19
  • 36
2
votes
1 answer

Debugging android wear watch and handset at same time

Is it possible to debug both an android wear watch app and an android handset app at the same time? I'm trying to debug sending data back and forth between a handheld device and an android wear watch app and it'd be nice to be able to attach the…
TWilly
  • 4,863
  • 3
  • 43
  • 73
1
vote
0 answers

Export data from Wear OS watch without a companion app?

I've built a Wear OS 2 app that (among other things) records waypoints using the watch's GPS. I'd like to export the waypoints, as a GPX file, to the paired Android phone. I think I understand how to do this using Channel Client and a companion app…
Andy Johnson
  • 7,938
  • 4
  • 33
  • 50
1
vote
1 answer

What's the use of WearOS "node" parameter in wearAble APIs?

In the code below : Wearable.getMessageClient(applicationContext).sendMessage(node,label,data) What's the point of node parameter ? I am able to send & receive data , no matter what value i use for the node.
Divesh
  • 112
  • 1
  • 6
1
vote
1 answer

Android WearOS app SocketTimeoutException failing to connect to a local server when bluetooth connected

I am developing a smartwatch app which connects to an API and make requests. The thing is, when I try to connect to the server and my phone is not connected to the watch, it works well and it connects to my local pc serving a rails API in…
1
vote
0 answers

Is it necessary to build a wear app to track activities (Eg. Running, walking, swimming, Hiking, Cycling etc) and to send data to android mobile app?

I am trying to fetch user activity() statistics (calories, distance, pace, Elevation, lap time) on google wear watches to a mobile application is it compulsory to build wear OS application to send data to mobile application.
1
vote
0 answers

How do i get api for MI Band 6 watch faces?

I want to create an application that will display collection of all mi band 6 watch faces available to download.I saw some of the application on google playstore that already had these feature .I googled on how they are doing it but found nothing…
1
vote
1 answer

Best practice for firebase authorization on Wear OS

I am implementing a firebase realtime database on Wear OS for an accompanying app connected to an Android device and I was wondering what are the best practices for authenticating the user on a wear watch. It is not very convenient to enter a email…
1
vote
1 answer

How to get sleep data DIRECTLY from Wear OS?

I am new to Wear OS development, and am trying to get user's sleep duration. I've managed to get sleep data from other smartbands using raw BLE stack, but I don't know how should I gather sleep data from Wear OS?. I've searched a bit in the web,…
theapache64
  • 10,926
  • 9
  • 65
  • 108
1
vote
0 answers

Should Android app check if Wear is connected before sending data?

I've got an app that utilizes a Wearable and am using the Listener Service, sending messages and synchronizing DataItems in between. This app does not have to use a Wearable. What I want to know is if my app should always check if a Wearable is…
nono_exe
  • 23
  • 5