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

Sync data to watch from phone

I made my own watchface and now I want to add the phones battery percentage too the watchface along with being able to customize he watchface from the phone. I'm trying to use this:Android Wear Watchface Settings on host but I keep getting…
0
votes
1 answer

How to Debug Android Wear Application in Eclipse?

I am trying to develop android wear application with handled app. My Android wear device (Samsung Gear Live) was not detected by ADB. So , I am signing the wear app and adding it to handled app and signing handled app separately. Now How to get…
Satya Attili
  • 678
  • 1
  • 8
  • 17
0
votes
1 answer

Check android wear and mobile connection status

I want to check the connection status between android wear and mobile. I know the WearableListenerService service methods onPeerConnected and onPeerDisconected. They are callback methods. I want to check the connection status on the click of a…
user3921255
  • 41
  • 1
  • 2
  • 5
0
votes
2 answers

How to start an activity with a custom layout from Wearable when Handheld device receives a Push Notification

I am trying to launch an Activity form a Wearable device (watch) when a push notification is received on a handheld device. I read in other questions that I will need to send data over to Wearable, then in the "onDataChanged" event I can build the…
0
votes
1 answer

Controlling the installation of apk in wearable device

I have installed an app on a handheld device, this app also has a wearable APK file inside it. so the question is that if i have a connected wearable device then can i control the installing of the app to the wearable device or is it something that…
0
votes
2 answers

Multiple DataItems with same Uri using WearApi Data Sync

On the mobile device, from a Service, I'm using the same path to update a bitmap asset using the following code: PutDataMapRequest dataMap = PutDataMapRequest.create("/result/1"); dataMap.getDataMap().putString(FIELD_NAME, name); if(bitmap != null)…
barkside
  • 3,951
  • 4
  • 23
  • 32
0
votes
2 answers

How to get dimensions of a connected Android Wear device for making bitmaps smaller?

I would like to resize large images for connected Android Wear device. I don't want to transmit large images over Bluetooth. Is there some generic way? I don't want to hardcode screen size for a specific device.
David Vávra
  • 18,446
  • 7
  • 48
  • 56
0
votes
2 answers

Android Wear Bitmap DataItem Asset Size

I am storing Bitmaps in an Asset that gets stored in a DataItem using a DataItemMap that I sync with my wearables. If I iterate through all of my DataItems using: DataItemBuffer list = api.getDataItems(connection.getClient()).await() for(DataItem…
Eliezer
  • 7,209
  • 12
  • 56
  • 103
0
votes
1 answer

Android Wear Close Bitmap Asset Underlying Stream

I have code that creates a PutDataRequest to sync a Bitmap with a wearable. My question is, do I need to close the ByteArrayOutputStream in the code below, or does the DatApi need it to stay open? I'm pretty sure it needs to be closed. Just having a…
Eliezer
  • 7,209
  • 12
  • 56
  • 103
0
votes
2 answers

Android wear crashes on notification

Iam trying to display a notification on a Android Wear watch only. I don't want the notification to be shown on the phone (It has the app open on their), and I don't want it to be in a Activity directly (However, one of the actions should open a…
-1
votes
1 answer

Issue with syncing data between watch and phone

I have developed an Android App which runs on both a smartphone and a smartwatch in parallel. On both devices, (let's say) it reads certain sensor data, processes that data (calculate its mean), and then store that results. The watch sends this…
utengr
  • 3,225
  • 3
  • 29
  • 68
-1
votes
1 answer

Communication from wearable service to handheld service [Android]

I'm creating a sensor logger-app for an Android Wearable. Logging is happening in a service, sending data from the wearable is done by a service, but after reading the Android Developer Guide and done some testing it seems like the preferred way to…
Dambakk
  • 595
  • 4
  • 20
-1
votes
2 answers

Android Wear: Unable to connect to GmsClient com.google.android.gms.LIGHTWEIGHT_INDEX

I am working Data Layer on Android Wear, which trying to send DataItem (using Data API) from the Wearable (Moto 360 Gen1) to my mobile devices. However, there is no sign of error or connection failed, and the data is not sent. The only message error…
-1
votes
1 answer

Something wrong with this line : Wearable.NodeApi.getConnectedNodes(googleApiClient).await()

I am sending data from my handheld device to emulator wear and following tutorial Data Layer Messages Code is not throwing an error, but when I debug and it stops at this line NodeApi.GetConnectedNodesResult nodes=…
Shruti
  • 391
  • 1
  • 5
  • 21
-1
votes
1 answer

Android Wear Message API Doesn't Work Phone to Watch

I've been reading how to use the Capability API and Message API between the watch and phone on the official site: https://developer.android.com/training/wearables/data-layer/messages.html I have no difficulty sending messages from the watch to the…
Nick Felker
  • 11,536
  • 1
  • 21
  • 35
1 2 3
19
20