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

Wearable.DataApi.deleteDataItems is not working

I would appreciate any insight as tried everything already to make deleteDataItems working but it doesn't. I've implemented a very simple scenario with creating new data items (ArrayList) in my main app and passing it over to the wearable client…
2
votes
1 answer

Android synchronizing database with wearable - DataMapItems are overwritten

I try to synchronize data from a SQLite database on the handheld to a wearable. Therefore I use the Data API with the following code on the handheld: cursor.moveToFirst(); while (!cursor.isAfterLast()) { final PutDataMapRequest putRequest =…
Chris
  • 4,238
  • 4
  • 28
  • 49
2
votes
1 answer

Wear addListener's onDataChanged isn't being called

I'm encountering a very weird scenario. I implemented both WearableListenerService and Wearable.DataApi.addListener on my wear device, and I am periodically sending data updates from my phone. The WearableListenerService is properly getting…
Jin
  • 6,055
  • 2
  • 39
  • 72
2
votes
0 answers

Wearable.DataApi.getDataItems Buffer is empty

EDIT: Of course I missed something embarrassingly obvious... The GoogleApiClient was not connected. I'm trying to synchronise some data between my phone and a watch. I decided to use the Wearable.DataApi.putDataItem method for that but when I try…
AKroell
  • 622
  • 4
  • 18
2
votes
0 answers

app not showing in Android wear start menu

I am creating an app that supports both mobile and wearable. What I have done so far is: correctly included wear module in build.gradle as mentioned here added correct dependedncies and support libraries for wearables same package name and…
2
votes
1 answer

onDataChanged listener not detecting the data transfer (Data Api)

I am trying to use the DataApi but I am not receiving the data on the wearable side. Here is my code : Mobile side : public class Moto360Service implements GoogleApiClient.ConnectionCallbacks, MessageApi.MessageListener { private static final…
krakig
  • 1,515
  • 1
  • 19
  • 33
2
votes
1 answer

Android Wear Proguard

I tried using proguard with my Android Wear application, but I'm not sure what should be going into the rules. In my wear app's gradle file I have: release { minifyEnabled true shrinkResources true proguardFiles…
Eliezer
  • 7,209
  • 12
  • 56
  • 103
2
votes
1 answer

WearableListenerService onMessageReceived() not called

On a phone device I have a WearableListenerService listening for input from a Android Wear device. I am using both DataItems and Messages. DataItems sync between the two devices just fine, however, I am having problems with receiving messages on…
2
votes
3 answers

How to use custom created drawable images for Android watch Face

Its been a week I was trying to create a watch Face for Android wear. As a kick start I followed Google official documentation and found these Android official watch face app tutorial with source code So my current issue is , In Google…
Nikhil
  • 911
  • 15
  • 28
2
votes
1 answer

Does Wearable.DataApi.getDataItems users UriMatcher

I'm trying to extract all data from Wearable.DataApi that matches wear:/someAttr/* The motivation is that I'm using PutDataRequest.createWithAutoAppendedId since I want to avoid overriding data written in the wearable device. I would like to match…
Ika
  • 1,456
  • 1
  • 15
  • 24
2
votes
1 answer

Permission Denial when onMessageReceived should be called

I'm following this tutorial and got a WearableListenerService. I just implemented the onMessageReceived method and didn't change anything else. The entry for the service looks like this:
schlingel
  • 8,560
  • 7
  • 34
  • 62
2
votes
1 answer

Google API client on watch emulator

I am trying to write an application for android watch. As following some of the samples available in Android SDK I wrote a service in android watch project which uses the GoogleApiClient. But as soon as it try to connect to GoogleApiClient,…
Dalvinder Singh
  • 2,129
  • 4
  • 21
  • 20
2
votes
1 answer

Saving an DataItemAsset received from Android Wear

I'm relatively new to Android. I'm transferring a file from an Android Wear device to a phone, which I did through PutDataRequest. On the phone side I get a DataItemAsset which can provide me a file descriptor using Wearable.DataApi.getFdForAsset().…
user908015
2
votes
1 answer

Need to analyze data from Android Wear

I want to know what is the best method to transfer data from Android wear for further analysis. Few options I found were to store data on wear's local database or store data on cloud using google cloud Apis. I need to collect data on wear…
2
votes
2 answers

How does NodeAPI in Google Play Services work?

I was trying to find the list of Nodes via getNodes() method in NodeAPI in GooglePlayServices. I have one LG G Live watch, one Samsung Gear 2 (Tizen OS) and one Google Glass. My LG G Watch has a connection with a companion APP (via…