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
2 answers

Does android Hybrid application(Cordova based) works in android wearables?

Does an android hybrid application(Cordova based) work in android wearable? Otherwise, would I need to develop mobile application in native and sync it with android wearable?
0
votes
1 answer

Data sent through Data API from mobile not received in android wear?

Data sent through Data API from mobile app is not received in ondatachange of listenerservice in wearable emulator.I can send a notification though, which indicates both are connected.Below my code, DataAPI call (mobile) PutDataMapRequest…
Learner_Programmer
  • 1,259
  • 1
  • 13
  • 38
0
votes
1 answer

WearableListenerService's onDataChanged not called on phone

I have an app on the wearable that should send a datamap to the handheld on a button click. I've made almost the same setup from the handheld to the phone, only difference is that I sent a message, which works perfectly, and now I want to send a…
Dambakk
  • 595
  • 4
  • 20
0
votes
1 answer

How do I get past mGoogleApiClient.connect() when it doesn't seem to actually connect?

I'm trying to send an ArrayList to my Android Wear device from the mobile device. Unfortunately I'm not getting past the mGoogleApiClient.connect() as per my sop statements. What I've done is set up a DataLayer item and used the onDataChanged() to…
conedmiro
  • 103
  • 10
0
votes
1 answer

Open a wear activity from a wear notification action button

All im trying to do is set it up so that when you click one of the action buttons on the notification it opens a wear activity ive looked up how to do this a bunch over the past day and i keep winding up with the same onconnected: null issue. i cant…
0
votes
2 answers

What is the best way to send whole .db file from android wear to smartphone?

Now I am making an wear app that records accelerator, magnet-field, gyroscope (50Hz) and write them to a .db file (that contains 3 tables(acceleration, magnet-field, gyroscope) using SQLiteOpenHelper. Once a day, I would like to send the .db file…
0
votes
1 answer

WearableListenerService not starting on release/production

I'am maintaining a project that has a a wearable subproject. I was fixing some bugs on it, and it was working fine. However the app behaves very weird on Release configurations. The MainAcitivty that implements MessageApi.MessageListener, has a…
Ibrahim Yildirim
  • 2,731
  • 2
  • 19
  • 31
0
votes
1 answer

How to send over data from database to wear?

My program requires me to send data from a database in the phone over to android wear of the same program when a Button is clicked. I have been trying to send it by converting the database to JSON and then taking those datas from the JSON recieved…
0
votes
2 answers

Accessing app content provider from wearable

I am working on the udacity wearable course and unable to get my wearable emulator to send dataEvents to the wearable device. On both the handheld and the wearable I have services that extend the WearableListenerService (WLS). The handheld version…
chris
  • 4,332
  • 5
  • 41
  • 61
0
votes
2 answers

Android Wear Receiving Old Values From DataLayer

I am using a WearableListenerService on the handheld to retrieve data for the wearable. I recently updated my code, and switched from sending a large set of DataMap objects to a single DataMap holding a byte array. The code was working, but as I…
Bryan
  • 14,756
  • 10
  • 70
  • 125
0
votes
1 answer

Receive assets on Handheld

I'm sending files from wear to handheld side. I'm sending 4 or 5 files (2 of them are bigger) but everytime the handheld side only receives ONE of the bigger ones... wear: public void sendFile(String filename){ //BLE files …
cdlc
  • 323
  • 1
  • 8
0
votes
1 answer

Android change watchface from phone app?

I am developing some Android wear watchfaces. I have 6 watchfaces classes that use CanvasWatchFaceService to generate them. Each is declared as a service in AndroidManifest.xml. I have created a companion app for them for my phone. I am able to…
Snebhu
  • 1,077
  • 1
  • 12
  • 19
0
votes
0 answers

How to pass an audio file in asset through dataItem from mobile app to android wear app

I want to pass an audio file from the mobile app to the wear app. From android developer guidelines I know it can be done through assests. But I need a sample code on how the file with .amr extension could be added in the asset and passed.
0
votes
1 answer

Not able to send data from mobile app to wear app when both the apps implements the WearableListenerService

I have created a mobile app with an Activity which sends the data to wear. Mobile App Side the code is as below Please note I have deleted some code to reduce the number of lines. public class MainActivity extends AppCompatActivity implements …
0
votes
1 answer

Syncing wear offline data

I am working for an Android-wear application. My goal is to sending continuous data to Handheld device from wear. Luckily I had achieved this using Data Layer api. The problem I am facing here is to sending and syncing the data which wear device has…
GouravJn
  • 246
  • 1
  • 6
  • 18