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
1
vote
0 answers

Wearable.DataApi.putDataItem not being called from Jobservice in Oreo

Due to Background Service Limitations in Oreo, I put up my Service (used in Nougat, API 25) to send data to Wear (API 23) using Jobscheduler (as recommended replacement). There I am using an AsyncTask to send data to my wearable. …
tomseitz
  • 503
  • 2
  • 4
  • 14
1
vote
0 answers

Android wear DataApi onDataChanged() not called for all requests

I am trying to use DataApi and DataApi.DataListener to send data from phone to watches, but onDataChanged is not called for all requests (only some are delivered) send from phone Wearable.DataApi.putDataItem(mGoogleApiClient, request) although…
majov
  • 545
  • 3
  • 16
1
vote
0 answers

Wearable DataListener callback not triggered in the store release

I implemented a watchface compatible 1.x few months ago (2.x to come). The app has been thoroughly tested with the debug version on a real device, coupled with an emulator, but also on a moto 360 first generation. Everything was working like a…
Yumi
  • 11
  • 3
1
vote
1 answer

Is it possible to pass data from Android Wear 2.0 watch to an IOS (Iphone) app?

I wrote an Android Wear 2.0 that pass data to a phone side using Wearable DataAPI. This works nice when the phone side is Android based. Is it possible to write an IOS app that can accept data from a watch using Wearable DataAPI ? (in swift)
1
vote
0 answers

Android Wear Watchface Engine Never Calls DataApi Update

I have code like this for a watchface in Android Studio. I'm putting a random integer in the datamap so that the receiving side on the phone app can detect it as having been updated. I set this code in onConnected with the intent that every time…
1
vote
3 answers

Data is not Synced between Watch Emulator and Android Phone

I am trying to sync watch with emulator I have followed the steps correctly and got my phone connected with the watch. So far I can change the watch faces from my phone and handle a few notifications. I have created watch face of my app and I am not…
1
vote
1 answer

GoogleApiClient is not configured to use Fitness.API required for this call

I am trying to send history of one week Calories burnt data using History_API. My code is like this - // Connection Establishment DataReadRequest readRequest = new DataReadRequest.Builder() .aggregate(DataType.TYPE_STEP_COUNT_DELTA,…
Vinay K L
  • 91
  • 1
  • 1
  • 8
1
vote
2 answers

What are the different ways to send messages/data between an android wear and a phone?

I have used message api to send messages between multiple android smart watches and a smart phone. I have used wearable listener service to launch the app in phone when the app in smart watch is launched. I have also used capability api to…
NewOne
  • 401
  • 5
  • 19
1
vote
1 answer

Send accelerometer data from android wear to smarthphone

Im trying to send some info from android Wear to the smartphone, but im having two troubles, first of all I am using PutDataRequest but it doesnt work and I dont know what am i doing wrong: public class MainActivity extends WearableActivity…
1
vote
0 answers

Sending message from phone to wear Android

I want to send message from phone to wear (android watch). I dont want to send Notification. So I am using MessageApi to send the message. For some reason, my watch is not getting it. I used the same code in reverse order (wear to mobile), it works…
praneel
  • 241
  • 2
  • 14
1
vote
1 answer

onDataChanged only called once?

I'm building a watch face for Android wear. The watch face will occasionally ask the handheld for information, which will be used to update the watch face. Unfortunately, onDataChanged and onMessageReceived only occur the first time the watch face…
James
  • 999
  • 2
  • 11
  • 22
1
vote
1 answer

Android Wear(Watch). Is there any way to detect that wear is connected to any device or not, from the wear only?

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.
android_griezmann
  • 3,757
  • 4
  • 16
  • 43
1
vote
1 answer

OnDataChanged is not called

I have a problem with comunication between my phone and wear device. I decided to add wear module to my app. Wear app has just one class (MainActivity) package cz.johrusk.myapplication; import android.app.Activity; import android.os.Bundle; import…
Tom Wayne
  • 1,288
  • 1
  • 12
  • 31
1
vote
1 answer

Android wearablelistenerservice not listening when phone asleep

I have a small home automation application running on my phone which listens for the 'command' from a wearable and sends a get request. When the phones screen is on (i.e. the device is awake) these messages are received by my…
1
vote
0 answers

Nodes count always zero when checked using capability API

When I try to share data between android wear emulator(app installed : wear module) and android device (app installed : mobile module), I am checking the number of nodes set using capabilityAPI before sending a message and the result always seem to…
Learner_Programmer
  • 1,259
  • 1
  • 13
  • 38