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 communication with wearable not working

I have a smartphone app which is working. I now want to extend it so that there is also a wearable part. I tried to get everything together from multiple sources (https://www.binpress.com/tutorial/a-guide-to-the-android-wear-message-api/152, and…
user754730
  • 1,341
  • 5
  • 31
  • 62
0
votes
0 answers

google play service stop working when run app

I am developing wear/handeheld app. I have problem when I run app on handheld, i am getting error "Google play service stopped working". Stack trace of error is following: java.lang.RuntimeException: Error receiving broadcast Intent {…
0
votes
2 answers

Reading sharedpreference on mobile when starting wear app

I'm learning data communication in android wear. My understanding is that both mobile and wear apps need to connect to DataItem via Google Services API in order to read data from the one or the other. I have data saved in sharedpreference in the…
awonderer
  • 665
  • 9
  • 26
0
votes
0 answers

onDataChanged() doesnt gets called when sending a specific byteArray in PutDataMapRequest

I sending datas from mobile to wear, sometimes i will get the datas on Wear but sometimes onDataChanged() doesnt gets called when sending a specific byteArray(convert image into byte array) in PutDataMapRequest.Any clue
mob_web_dev
  • 2,342
  • 1
  • 20
  • 42
0
votes
1 answer

How to remove the confirmation window from android wear

I have done a notification action,but when i click on the action button there is confirmation window is coming.May i know how to remove this screen from android wear ?
mob_web_dev
  • 2,342
  • 1
  • 20
  • 42
0
votes
2 answers

Android Wear - Retrieve value from Phone

I hope someone can help me. I can't seem to find anything that gives me a straight answer or that works. So basically on my Phone app the user enters their age which I will then save and pass to the Watch. For now to get it working i'm just using a…
0
votes
1 answer

How to Share .CSV file from Android Wear to Mobile devices

I would like to share .CSV file from android wearable device (watch) to Android phones. Please help me to solve this requirement. I searched many forums , but there is no luck. Thanks Priya
user3041237
  • 41
  • 1
  • 6
0
votes
1 answer

Internet connection in android wear watch?

Can you share the ways the android wear watch can connect to internet while it is not pared with mobile device.( Eg: is it possible to connect via wifi, or data connection).
Rakhi
  • 81
  • 12
0
votes
1 answer

Filtering Messages Handled By WearableListenerService

I have noticed that my WearableListenerService is started at random times by a connected watch even when it's not my app that has sent the message. I know it's being started because when I leave it over night, I log when its created and it is…
StuStirling
  • 15,601
  • 23
  • 93
  • 150
0
votes
1 answer

Establish a permanent connection with a wearable, or as and when needed?

I have a permanently running service app on the handset, one of the things it does is detect when there is an incoming phone call and send a message and some data to a companion app on a wearable device. I'm wondering whether the app should…
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378
0
votes
1 answer

android wear message api start activity and methods

I have a problem with the android wear device I can turn on the camera with the message api by loading turnOn() onCreate on mobile device. Problem One: I can't open an activity if the phone is locked. Problem Two: I can start only one activity if…
0
votes
2 answers

Android wear module listener service not receiving data from mobile module

I am developing a sample watch face wherein a user would be able to select some color configuration on mobile app triggering changes on wear app watch face. Here is what I have in mobile app to send configuration: package…
Pratik
  • 23
  • 1
  • 5
0
votes
2 answers

Sending DataMap in a background service android

I'm trying to send the content of a DataMap from an Android device to a wearable. It works fine when the app is in the foreground on my app but once I lock the mobile device it gets stuck at the pendingResult.await() and the wearable doesn't receive…
0
votes
1 answer

How to show the same layout in android wear and mobile at same time

I have a layout of some textviews.The textviews are changing depend on a timer. I need to show this layout in mobile and android wear at same time.Please suggest me a solution
0
votes
1 answer

How to call saved dataItem in Android Wear?

I'm creating a watchface that can have the color customized through an App that is on the phone. I've seen examples use the DataApi and DataItem to save/load settings. The problem I am encountering is that when I change to a different watchface and…
JTY
  • 1,009
  • 7
  • 13