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

Android Wear Data Syncing Issues

I have created a watch face that contains a config screen on the phone and a simplified config screen on the wearable. This is the layout of my project: MobileModule WearModule UtilModule (contains util class that retrieves data from Google…
0
votes
1 answer

WearableListenerService only wakes up when I open my app

I have successfully implemented communication between my phone and watch app through WearableListenerServices in both modules. This works perfectly for the most part, however, if i don't use the phone app in a while the watch app stops…
Adam Short
  • 498
  • 7
  • 28
0
votes
1 answer

Android Teleport Library. Incompatible Class Change Error

I'm trying to overhaul an Android Wear application that I was using standard Data Layer with to use the Teleport Library. I am getting the following error. java.lang.IncompatibleClassChangeError: The method 'void…
David West
  • 2,256
  • 6
  • 32
  • 62
0
votes
0 answers

getConnetedNodes hits timeout without Wear app installed

In trying to detect whether our Android app's user has a Wear device paired with their phone, we call // Call Wear API to see whether a device is connected ... nodes = Wearable.NodeApi.getConnectedNodes(client).await(20, TimeUnit.SECONDS); return…
Rawling
  • 49,248
  • 7
  • 89
  • 127
0
votes
1 answer

Andorid Wear - Start Mobile Service on Watch Face Set

How do I start a standard Service on my mobile device from a watch face? Would I need to use the Message API? If so, what would be the correct way of doing this? I currently only start the Service on the mobile's boot and when I open the config…
Timmo
  • 2,266
  • 4
  • 34
  • 54
0
votes
1 answer

Android Wear: measuring sensors and preventing ambient mode / sleep

I have built an app for Android Wear that needs to measure the motion (accelerometer) sensors continuously for an hour or so for data collection purposes. During operation, I have had problems with the device going into ambient mode (or sleep) and…
Hephaestus
  • 4,337
  • 5
  • 35
  • 48
0
votes
1 answer

How to reduce delay while sending continuous data?

I have a wear app which acts as a controller to another app in mobile. I have used message api to communicate between the devices. The messages include recognized touch and non-touch gestures and these will be displayed on the mobile app. Everything…
NewOne
  • 401
  • 5
  • 19
0
votes
1 answer

Android Wear: Installing to multiple wear devices

I'm building a phone app with direct connection to a wear app running on several wear devices. The wear app will run on several wear devices at the same time and will share data to a single phone app. I'm following the Android guidelines for…
Hephaestus
  • 4,337
  • 5
  • 35
  • 48
0
votes
1 answer

Send Data to Wearable from Phone via WearableListenerService

I have a watch face which I am looking to send a few strings using the Data Layer. I have followed the guide by adding the service to the manifest and creating the DataLayerListenerService class. What am I supposed to do to send data to the wearable…
Timmo
  • 2,266
  • 4
  • 34
  • 54
0
votes
1 answer

An error occurred while executing doInBackground() Android AsyncTask error

Here is my code: public void button_sendMessage(){ new SendPhoneTask().execute(); } public class SendPhoneTask extends AsyncTask { @Override protected Void doInBackground(Void... args) { Collection nodes =…
0
votes
1 answer

Send message to Android service when wear app is launched which then sends data back to the wear app

I want to request some data from my app when my wear app launches. This data should then be sent back to the wear app to display. I'm struggling to understand how to implement WearableListeners or DataItems or where to implement them! Another…
Adam Short
  • 498
  • 7
  • 28
0
votes
1 answer

Android Wearable: how to get a current variable using DataApi?

This is the event-based code Wearable.DataApi.addListener(googleApiClient, new DataApi.DataListener() { @Override public void onDataChanged(DataEventBuffer dataEvents) { Log.i(tag, "on data changed " +…
user3290180
  • 4,260
  • 9
  • 42
  • 77
0
votes
1 answer

Android wear stream accelerometer data to handheld

I an new to android wear app development. I wanted to create an app which streams accelerometer data continuously from wear device to handheld, and do some processing on my handheld. Does anyone know how can I do it?
0
votes
0 answers

What is the Lifecycle of Ondatachanged in android?

I was trying to understand the flow of events when onDatachanged is called in android.According to me the ideal flow of the program should first print "Inside onclick" then "inside Ondatachanged" and the "endof of onclick" however the flow that I…
UndoTheUndo
  • 43
  • 10
0
votes
1 answer

Making only a particular fragment to be in Ambient mode android wear?

I have an activity (extends WearableActivity) inside which there are multiple fragments.I want only one of the fragment to be in "always on" mode.The default functionality of "closing current app" should happen on ambient timeout for other…