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
4
votes
3 answers

Wrist gesture detection on Android Wear based smartwatches: is it possible?

Does anyone have any information to share regarding gesture detection using wrist movements (in contrast to swipe movements on the touchscreen) with Android Wear? Is there official support for this in the API? If not, do you think this can be…
Asgaro
  • 65
  • 1
  • 7
4
votes
1 answer

Android Wear modify "Open on Phone" button intent

I am trying distinguish if a notification was opened from the watch or the phone. Currently I am trying to set the contentIntent for the notification builder which also appears on the watch as an "Open on phone" action. I want to be able to set a…
4
votes
3 answers

WearableDataListener Service doesn't invoke onDataChanged method

I am making a wear app which fetches data from database(which is on handheld) on launch of app home screen. So when the homepage activity launches, It sends a message using Wearable.MessageApi.sendMessage function from the android wear to handheld.…
Kristy
  • 121
  • 2
  • 6
3
votes
1 answer

What do we need to use in place of wear api in Android?

Android Wearable.API is deprecated ? so what do we need to use to build the api client. My current code is mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Wearable.API) .build(); …
Pritish
  • 1,284
  • 1
  • 19
  • 42
3
votes
4 answers

Android Wear: Google Play services out of date. Requires 9256000 but found 8701534

I can't get my Android Wear app to work. Every time it tries to open something on the phone I keep getting this error in the logcat: W/GooglePlayServicesUtil: Google Play services out of date. Requires 9256000 but found 8701534 Nothing should be…
3
votes
1 answer

Sending data from mobile app to Android Wear delay

I'm trying to sync data between a settings app and a watch face and I'm having no luck. I've tried using a googleApiClient with listeners & onDataChanged and DataMaps, but there is a huge delay on the wear device to receive the data. (I'm talking…
DeNitE Appz
  • 1,003
  • 2
  • 12
  • 18
3
votes
3 answers

How do I prevent OutOfMemory Error when allocating new byte[] for File transfer?

I am trying to read a file in order to send it via Wear App, but I get an OutOfMemory exception. File file = new File(filePath); final FileInputStream fileInputStream = new FileInputStream(file); byte fileContent[] = new byte[(int) file.length()];…
Kamilski81
  • 14,409
  • 33
  • 108
  • 161
3
votes
1 answer

Create a background service in android wear

I have been trying to create an alarm application for my watch for past few days. And unable to find any clue that how we can create a background service for android wear. Even I didn't find anything in the developer guide for android wear. But, I…
3
votes
1 answer

Android Two Way Communication Between Handheld and Wearable

My Goal I am creating an app/package where the wear and handheld are able to both make changes on the Data Layer and be notified of such changes. I am using the GoogleApiClient and the DataApi.DataListener interface. Current Progress As of right…
3
votes
2 answers

Adding a settings icon to toggle configuration for Watch Face (Android Wear)

I currently have an android wear watch face developed. I recently tried implementing configurations to the users. Everything works except I cannot figure out what I am doing wrong to not get a settings icon under my watch face. If anyone could…
3
votes
3 answers

Send file Google Wear to mobile

I'm trying to send a file from my Google wear to my Nexus 5. I've read some tutorials and came up with the following code but my phone isn't receiving a file. Mobile: private GoogleApiClient mGoogleApiClient; private int count =…
Yourivdzee
  • 83
  • 1
  • 1
  • 6
3
votes
1 answer

Cannot send an Asset to an Android Wear device

I'm trying to send an Asset to my Sony SmartWatch3. I followed the Google's documentation (https://developer.android.com/training/wearables/data-layer/assets.html) but it doesn't work. My handheld activity's code : public class MainActivityHandheld…
ALI
  • 33
  • 6
3
votes
1 answer

Continous Sensing of Accelerometer and Gyroscope Data on Android Wearable

I am working on a app which will run on wearable (Sony Smart Watch 3) and handheld (Samsung S5). I want to sense the accelerometer and gyroscope data from watch continuously and send and save the data to handheld. I am wondering which is the best…
3
votes
0 answers

Wear app only work on debug

I'm developing a application to wearable devices, and I had all working perfectly while i'm in debug mode using Android Studio and Wear emulator and also a real Wear device. I can comunicate Wear->Handheld and Handheld->Wear, send data, messages and…
3
votes
0 answers

Max rate to stream sensor data from Android Wearable

I am developing an app that requires real time sensor data streaming from a wearable. I am using an LG G watch and the accelerometer and gyroscope sensors. The sensor data and system current time are packaged as an array of 4 bytes for each axis of…
jhaas
  • 29
  • 3
1 2
3
19 20