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
1
vote
0 answers

Any input on why the .DataApi.addListener(... , this) only seem to get called by the Mobile app and not the Wear app?

.onConnected() never seems to be reached by my [Wear - MainActivity] regardless of how it gets called. I can see the S.O.P. for the .onConnected() for the [Mobile - MainActivity] as well as the S.O.P. where: DataMap map =…
conedmiro
  • 103
  • 10
1
vote
1 answer

Sending ArrayList<> DataItem from mobile to wear

Currently my issue is that whenever I try to access the ArrayList<> I've sent via my DataItem layer, it tells me the object is null. Can someone shed some light as to where the issue is falling? MOBILE public class MainActivity extends…
1
vote
2 answers

Wearable DataLayer API: Can't find setUrgent() method in putDataMapRequest

I've been trying to set the priority of my data sync request to urgent, however I'm unable to find the method under the instance of PutDataMapRequest or PutDataRequest. I've searched around and found no evidence of this method being deprecated.…
1
vote
1 answer

Fragment NullPointerException, Changing fragment textView's text from activity

I have a problem with my android project. I am sending data using Datamap to my wear. I have a datalistener for getting data in the wear main activity. Basically I want to change fragment's textView's text from activity. When I am trying to do this…
1
vote
4 answers

Send and Receiving Data using DataMap - Android Wearable

I am working on an Android Wearable project and I am trying to send data from the mobile device to the Wearable emulator. I am trying log the received data in the wearable but it is not logging. These are what I've done so far. 1) Open the Android…
Ben Wong
  • 691
  • 2
  • 19
  • 29
1
vote
1 answer

How do you enable Android Wear app with in-app purchase?

I'm trying to find a way to enable an Android Wear companion app only if the user has purchased it via an in-app purchase on their mobile device. 1) Is this possible? 2) How is it done?
Michael Garner
  • 1,042
  • 1
  • 10
  • 19
1
vote
0 answers

Error getting battery Status Service and sending it to wear module

In my android wear project ...i am trying to get battry status of phone and sending it to Wear device...so i am trying to run an Service which will run in background and register an BroadcastReceiver on action ACTION_BATTERY_CHANGED ..onReceive it…
1
vote
1 answer

Is DataApi Reliable and Practically Real Time? Extremely Delayed

I have had an Android Wear app on the market for about 10 months now and it's stopped working (Not sure when it stopped working). I'm trying to update my wearable application with some statistics that I record in my mobile app. As I say, this used…
1
vote
1 answer

How To Sync Old Data From DataAPI To Wearable

I am currently getting a list of data from a URL on the handheld device, and passing this list as a string array to the Data Layer. Now, I understand that I can use onDataChanged() within the DataListener to get the data from the Data Layer on the…
Bryan
  • 14,756
  • 10
  • 70
  • 125
1
vote
2 answers

map showing gray on an Android Wear Emulator

i am using Android Studio, i created a wear AVD with API 22, Activated debugging on the device an obtained the google map API key, i used the example provided by google for a simple Wear application using Google Maps API…
1
vote
1 answer

Detect if app is made for Android Wear programmatically

I want to detect all apps having Android Wear support. How to detect whether the installed app on device is for Android Wear or not. AFAIK, there aren't any flags in PackageInfo or ApplicationInfo that indicates that app supports Android Wear. There…
1
vote
1 answer

Not able connect to Google API client from Wearable Fragment

I created a fragment in Wearable app where I need to send message to Handheld using message API of Google API client. The google is not connected and it always displays log as "not connected". I added meta data to manifest on Wearable side. Please…
1
vote
1 answer

Wear Channel API gets one file per channel

Anybody got a handle on the new Channel API?  The Android site says it can be used to send music files, for example. However, the docs for the Channel object say that receiveFile and sendFile should only be used once on any channel. The only example…
Beth Mezias
  • 270
  • 3
  • 13
1
vote
1 answer

Android Wear + Webservice Calls

I am trying to use OkHttp with Android Wear App. All the Internet and required permissions are there. As of goggling, I found that we can't communicate Web-service directly from the App ? We'll have to use Message and Data Api to pass the Data from…
1
vote
1 answer

Android LocationManager requestLocationUpdates in a WearableListenerService

I'm wondering how (if possible) to successfully run a requestLocationUpdates for my LocationManager inside a short-lived service - in this case an Android WearableListenerService. For example, I have a service that runs when the wearable devices…
cpjolicoeur
  • 12,766
  • 7
  • 48
  • 59