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 Wear Message Listener

I need some help I have Android Wear with message api working but I'm stuck sending some commands this is my listener. import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import…
0
votes
1 answer

Implementing both DataItem.DataListener interface and WearableListenerService

In Android Wear application i've implemented DataItem.DataListener interface for an Activity. Since i already created WearableListenerService for some other usages. Now the situation is when i want onDatachanged() in MyActivity it will execute…
Anees
  • 514
  • 5
  • 20
0
votes
1 answer

Huge delay of notification's deleteIntent execution on wearable (~5 seconds)

I create notifications on the wearable for some good reasons. Since I display the same one on the mobile too I need to syncronize the deletion of the notifications. I observed that it takes a lot of time between the deletion of the notification on…
0
votes
1 answer

Trouble receiving Wearable Data API updates

I am reusing some of the classes from the FindMyPhone demo for Android Wear https://github.com/mauimauer/AndroidWearable-Samples/tree/master/FindMyPhone I am trying to send a message to the handheld app but only after the user has pressed the…
Jack Shultz
  • 2,031
  • 2
  • 30
  • 53
0
votes
1 answer

Sending Byte array to Galaxy Gear Live from the mobile

I have been developing an app to read serial data from the micro usb port of the Samsung S4 using OTG cable. Now I want to send these data to the Android wear app runs on Galaxy Gear Live. The problem I face is that, I know we can send Strings to…
0
votes
1 answer

Android Wear Api 21 Unable To Install App

Hi this is just a simple question... I have Android Wear and a Samsung Galaxy Note 4 4.4Kitkat Api 19. I tried to run a Android Wear application but it give me error Api21>Api19 is there a way to edit Api Level and compile it?
0
votes
1 answer

Android Wear: Asset in dataMap but can't be retrieved?

I'm storing a thumbnail picture with my data as an asset. On the Wear side, it doesn't show up sometimes. However, if I debug, I can clearly see that the DataMapItem does contain a HashMapEntry with key "photo" and data behind it…
bryan
  • 798
  • 7
  • 18
0
votes
1 answer

Restarting Android service

I want to be able to restart my WatchFaceSerivce in so that I can trigger the onCreateEngine() method again and set an alternate wallpaper. However, the Android service I am trying to restart is putting up a real fight, it almost seems as though…
rmoh21
  • 1,405
  • 6
  • 19
  • 36
0
votes
1 answer

Executeing a method in Handheld class from Wear Module Android

Let's say I have a Method in MainActivity called Emergencyalert(), what it dose is, it sends some alert message to some selected contacts. So I wanted a wear app which dose nothing but just execute the Emergencyalert() Method in Handheld Device,…
Sai
  • 15,188
  • 20
  • 81
  • 121
0
votes
1 answer

Google Glass and Wearable Data Layer API

I am trying to make a connection between my companion app and glass app. I am trying to use the data-layer api for this purpose. I wanted to avoid any bluetooth and socket programming for this purpose. Initially, i am trying to send data from phone…
0
votes
1 answer

Send a message to wearable from BroadcastReceiver in handheld app

I want to show a notification only in the wearable app at some time specified by the user. For testing, I have a BroadcastReceiver in the handheld app that starts a service and shows a notification at that time in both handheld and wearable. I also…
0
votes
2 answers

How to know if a message sended from Android wear is received from Android handheld?

here my code, I don't understand why I get success status but the message in not received from handheld because the handheld App is off... How can I know if the message is sended and recived on handheld? for (Node node : nodes.getNodes()) { …
alfo888_ibg
  • 1,847
  • 5
  • 25
  • 43
0
votes
1 answer

Remove a Connected Node on Android Wear programmatically

On Android wear, the NodeAPi has interfaces to fetch the connected node. This connected node is maintained by the OS itself somewhere (guessing it is in gms.wearable shared preferences). Because of this reason, when one tries to switch a connected…
0
votes
1 answer

Send message to phone from Android Wear Notification

I am new to Android Wear programming and I'm learning as I develop this application. It's simply going to be a media controller - so that the user can press play / pause on the watch and the phone that plays video receives and handles it. What I…
Joakim
  • 3,224
  • 3
  • 29
  • 53
0
votes
2 answers

Realtime data exchange between Android Wearable and Handheld

I am working on a simple app which will run on both wearable(Samsung Gear Live) and handheld(Moto G). I want to display the data from the wearable's heart rate sensor, accelerometer and gyroscope on the handheld. Which is the best way to achieve…
akmal
  • 655
  • 5
  • 24