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
0
votes
1 answer

Android: Wearable not receiving Message Api message

I am trying to send a message from an android phone to a wearable, but the onMessageReceived method in the WearableListenerService is never called. I have verified that the message from the phone sends successfully and to the right node, so the…
0
votes
1 answer

Using expansion files for android wear watchfaces

I am working a watch face everything works is fine but the problem is apk has crossed 100 MB (80% of space is because of image resources). So i m in a situation to use the expansion file. Have added the image resource as expansion file & i can now…
Karthik
  • 87
  • 1
  • 9
0
votes
1 answer

How to know if data sent from the wear are received on the phone

I'm currently sending data from my wearable app with a "SendFileService". In this service I use the DataApi https://developers.google.com/android/reference/com/google/android/gms/wearable/DataApi to send the data that are stored in a .csv file. On…
0
votes
1 answer

Using dataApi to update complication

Can this be done? I cannot get onDataChanged working is complicationService and if I do it in a WearableListener class, how can I pass the data to the complicationService and force an update? Thanks very much! This code is on the handheld to update…
0
votes
1 answer

How to "connect" the android watch programmatically if disconnected in the Android Wear app?

On the top of the action bar menu, top right, in Android Wear app, I see the following item: "Disconnect HUAWEI WATCH" (this is the watch I use for testing). If I select this item, indeed, the watch is kind of "disconnected" - there is no Bluetooth…
Audrius Meškauskas
  • 20,936
  • 12
  • 75
  • 93
0
votes
1 answer

Android Wear 2 standalone app DataLayerApi and Google Play distribution

I have an existed Android App in Google Play Store and have created an Android Wear 2 App (using SDK 25) as a standalone semi-independent one. Semi-independent means that the user could use some additional features if the Android App is installed…
0
votes
1 answer

How to correctly register DATA_CHANGED Data API event after crash/forcibly stop?

I'm developing an Android app to collect data from an Android Wear. A WearableListenerService is used in the handheld device to receive data from the watch via Data API. But I noticed that if the app in handheld device is forcibly stopped, either…
0
votes
1 answer

Wearable DataAPI syncing issue with multiple watches (Looping)

I have a watchface with a companion app for phone. It uses Wearable.DataApi to sync changes between the phone and watch. I have a DataApi.DataListener setup and sync changes made on the watch or phone side. I have no issue with a phone and ONE watch…
BigDX
  • 3,519
  • 5
  • 38
  • 52
0
votes
1 answer

Android Wear multiple InputStream decoding to Bitmap

From the smartwatch I receive a DataMap object which contains two DataMap Objects, one containing a list of strings (title, subtitle, content ...) and the other one containing a list of Assets List rootItemDataMap [...] DataMap…
0
votes
1 answer

Android Wear Google Play Services

I developing an android wear app. While synchonization the data I have to use Google Play Services in order to update information between devices (phone and wear). I have some problems: While synronization Google Play Services have to update to the…
Vyacheslav
  • 26,359
  • 19
  • 112
  • 194
0
votes
1 answer

Android Wear DataMap onDataChanged() not called for data from other device only

I'm making a library that uses Android Wear's DataMap Api to send information between a Wear device and a phone. I've got the DataMap Api working with another project, but despite using the same steps, it doesn't seem to work in this one. If I use…
Martin_xs6
  • 559
  • 3
  • 9
0
votes
1 answer

WearableListenerService don't call onDataChanged on Wear

I already tryed many ways to solve this, but nothing works. making-wearablelistenerservice-ondatachanged-call-on-every-putdatamaprequest wearablelistenerservices-ondatachanged-not-called-on-phone AndroidManifest.xml
Igor Ronner
  • 1,565
  • 2
  • 14
  • 31
0
votes
0 answers

Why am I getting "GoogleApiClient must not be null" when attempting to connect wear and Android app?

I'm following along with this tutorial, attempting to get my wear app and mobile app communicating. https://www.binpress.com/tutorial/a-guide-to-the-android-wear-message-api/152 I think some part of the solution must be omitted, however, because I…
xrd
  • 4,019
  • 6
  • 30
  • 39
0
votes
1 answer

Can't connect to Android Wear watch after a reboot

After the watch reboot, changing a watch face from AndroidWear application works, but companion application can't communicate with a watch for some reason. Although the question isn't specific enough (there's nothing to share in terms of code),…
Taras
  • 2,526
  • 3
  • 33
  • 63
0
votes
1 answer

Sync Android Wear with Phone whenever you open the wear app

I am trying to implement a basic weather app for both android phone and wear. The application gets its data from an Web API then it displays it on the phone. Right now if the app is open on the Wear and then you open it on the Phone, it syncs the…