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

ChannelAPI can not be resolved

I am trying to exchange files between watch and handheld by using the channel API. But when I tried to open the channel by calling the following code, the ChannelAPI can not be resolved . Its not part of the "wearable" class I am using. I guess…
Foreverniu
  • 349
  • 1
  • 3
  • 18
0
votes
2 answers

Is it possible to create a local file to store data?

I'm currently using the dataAPI to keep the dataitems synchronized between handheld and wearable. Still I want to make sure that every data is stored and there is no data lost in the process. I'm currently reading GPS parameters when the wear is not…
cdlc
  • 323
  • 1
  • 8
0
votes
1 answer

Android Wearable Data Layer won't sync.

I am trying to use Data sync between watch and my phone but I am failing miserably on that. Mobile side : package com.off.testcomm; private GoogleApiClient mGoogleApiClient; @Override protected void onCreate(Bundle savedInstanceState) { …
wonglik
  • 1,043
  • 4
  • 18
  • 36
0
votes
1 answer

Move large data to the watch

I want to send a text file to the watch with size around the 2mb. I tried to save it as string on the data map but I always get !!! FAILED BINDER TRANSACTION !!! Any suggestions?
Naheel
  • 497
  • 3
  • 13
0
votes
0 answers

DataApi doesn't always sync properly

So I found something weird about GoogleApiClient. That's if you change the handheld's time to future (change it to a few days ahead), then sync some data via DataApi to wearable, then change back to correct time (use Automatic date & time), then…
Leo
  • 1,433
  • 23
  • 40
0
votes
1 answer

How should I transfer a large 30MB from wear to mobile?

I am currently using the DataApi and Asset class to transfer a 30MB file from mobile to wear. I am using an IntentService but the file never gets to the mobile. The wear freezes and says "Application is not responding, do you want to wait?" Should…
Kamilski81
  • 14,409
  • 33
  • 108
  • 161
0
votes
1 answer

GoogleApiClient onConnected not called on Watch

I have read this thread but I still faced similar issue: GoogleApiClient onConnected never called on Wearable device I tried to follow exactly how this works: https://developer.android.com/training/wearables/data-layer/events.html Here are my…
Lim Thye Chean
  • 8,704
  • 9
  • 49
  • 88
0
votes
0 answers

Choosing the default background bitmap for an Android wear watch face

Just starting working with Wear. Having trouble figuring out how get a user chosen bitmap prepared and ready before the onDraw. I can hard code it in onCreate but can't figure out how to deal with config options (I'm familiar with shared preferences…
John Smith
  • 3,493
  • 3
  • 25
  • 52
0
votes
1 answer

Android Wearable API: how to pass a dynamic List?

This is how I'm using DataAPI PutDataMapRequest dataMapReq = PutDataMapRequest.create(PATH); dataMapReq.getDataMap().putFloatArray(KEY, list); PutDataRequest putDataReq = dataMapReq.asPutDataRequest(); …
user3290180
  • 4,260
  • 9
  • 42
  • 77
0
votes
1 answer

Do I need to Create a Mobile App for retrieve data from Google Fitness API

I just need to create a web application to analyse the daily fitness records. I plan to monitor daily activities from Google Fitness API I installed Google Fit application from Google Playstore It successfully track my daily activities Now I needs…
Milinda Bandara
  • 542
  • 8
  • 23
0
votes
1 answer

How to detect my WatchFace is being used or stopped being used

I have a service that does some extra work for android wear. I want to invoke the extra work only when the user is seeing my watch face. One way to detect that the watch face is being invoked is by using the sendMessageAPI and a message will…
nizam.sp
  • 4,002
  • 5
  • 39
  • 63
0
votes
2 answers

android - service for interaction with wearable

I tried creating a service (which extends WearableListenerService) which should send as well as receive data with wearable. But when i created GoogleApiClient object in that service, it failed with NullPointerException. public class MyService…
0
votes
1 answer

Hide or disable a service on specific version in manifest

Is there a way to disable a Service in a certain Android version? I don't want versions 4.2 and lower which do not support Android Wear to launch my WearableListenerService. Is there a way to say, "I don't want to launch this Service if you are on…
0
votes
1 answer

Delay in Android Wear putDataItem() and invoking of onDataChanged()

I want to use the action button "Open" on a notification on my Android Wear application, to open a Dialog with some task data on my handheld. To do this, I put my message in a PutDataMapRequest and use the following method in my Wearable…
appel
  • 517
  • 2
  • 7
  • 19
0
votes
0 answers

Android Wearable -- Get package name of installed apps from smart phone

Is there a way to get the package names of all installed apps on my wearable device (watch) from my smart phone? The restriction I have is that I cannot install anything on the wearable device itself. I checked the NodeApi…
Jon
  • 1,381
  • 3
  • 16
  • 41