wear-os

Access Android Wear Fit Data

故事扮演 提交于 2019-12-03 06:18:09
I'm developing an app for Android Wear on Samsung Gear Live (Google I/O Edition) where it will need access heart rate and steps count history data. I know that later this data might be accessible using Google Fit SDK , but is it possible to read that data without using that SDK right now? I would prefer to access this data without ROOTing my G Watch. Here are the screenshots of the historical data that I would like to extract: Steps History data: Heart Rate History Data: UPDATE 10/28/2014 Google Release Google Fit SDK Available on the Official website I guess the only option right now is for

What is the Uri for Wearable.DataApi.getDataItem() after using PutDataMapRequest?

大憨熊 提交于 2019-12-03 06:10:15
I'm testing the Wearable Data Layer Api as described in the Android tutorial . There is a low level API based around DataItem , which can have only a byte array as payload, so the training recommends using PutDataMapRequest , which seems to be basically equivalent to a Bundle (i.e. a serializable map) when using Intents. You basically create an instance of this class, then fill the values, and send it. private final static String DATA_PATH = "/testdata"; PutDataMapRequest dataMap = PutDataMapRequest.create(DATA_PATH); dataMap.getDataMap().putInt(...); PutDataRequest request = dataMap

Make the wearable vibrate from within an android wear app [closed]

做~自己de王妃 提交于 2019-12-03 06:02:58
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm writing a simple wearable app to my LG watch that sends vibrations to the watch on constant intervals and show some mock data. Although I've looked for an answer, I could't find a way to make the watch vibrate. Any help would be appriciated. 回答1: @Drew, thank you! If anyone else is interested, here's a code

How to launch android wear activity from mobile

你。 提交于 2019-12-03 03:51:32
I have been working on a project where I need a button on a mobile to start up an activity on the watch. I have been going through the data layer sample in the sdk but can not get it working. I set up a wearable listener service class, but it is not picking up any messages. The service is added to the manifest but it is still not working. I do have other services too and I am thinking I might have too many services. On the Wear watch, does an activity have to be running in order for it to start another activity? I want the watch to run nothing until it receives a message, is this possible?

Android Wear detect “Mute”

你。 提交于 2019-12-03 03:45:47
How does an application check in on "Mute" status of an Android Wear device? All volumes seem t be 0 no matter what. Log.d("VOLUME - STREAM_SYSTEM", Integer.toString(audioManager.getStreamVolume(AudioManager.STREAM_SYSTEM))); Log.d("VOLUME - STREAM_NOTIFICATION", Integer.toString(audioManager.getStreamVolume(AudioManager.STREAM_NOTIFICATION))); Log.d("VOLUME - STREAM_RING", Integer.toString(audioManager.getStreamVolume(AudioManager.STREAM_RING))); gives me D/VOLUME - STREAM_SYSTEM(32598): 0 D/VOLUME - STREAM_NOTIFICATION(32598): 0 D/VOLUME - STREAM_RING(32598): 0 Unfortunately Google has not

How to access Android Heart Rate Sensor RAW DATA? (reflected light, not the heart beat)

泄露秘密 提交于 2019-12-03 02:12:37
The android sdk on heart rate sensor only returns the calculated bpm which I have no interest. I need to access to android heart rate sensor RAW data, e.g. in terms of intensity of reflected value would be great. (because basically heart rate sensor uses led and measures the reflectance over time) If possible, access the the raw image collected by the whatever image sensor would be greater. thanks. Related SO question: Read underlying color/light data from Android Wear heart rate sensor? You can use Google Fit's Sensor API to get the raw heartbeat data, if Google Fit is an option. See Google

Can I send custom objects to Android Wear?

…衆ロ難τιáo~ 提交于 2019-12-03 00:53:14
I am just learning how to develop for Android Wear, I have created a full screen Activity for Smart Watches and in my mobile part of the application I get some JSON data and create a list of custom objects from this. On my mobile app I show the information for these objects in a ListView. On the Wear piece of my application I want to show a limited version of this list, for example the top 3 from the list will be show on my full screen app on the Wearable. My problem is that there doesn't seem to be a way to send Parcelable Objects to Android Wear, there is no option to putParcelable in the

onDataChanged() not being called on android wear

社会主义新天地 提交于 2019-12-02 23:33:26
问题 I'm trying to use Data Items to send a few strings through to my wear, but my wear never seems to receive any signal, because onDataChanged() is never called. I even set a time stamp to ensure the data is always different whenever it is sent. Is there a specific way I have to install the app onto both devices to get it to work? I'm just clicking run and selecting my phone, then switching modules and doing the same for my wear device. Here is the code from my main activity on my phone: public

Android Wear app resulting in getGoogleAppId failed with status error

╄→гoц情女王★ 提交于 2019-12-02 23:33:19
I have an Android Wear app which was working fine on my Moto360. It access Google Play Services and GCM APIs in the Google Admin console. Then I tried to use another watch (LG G Watch). Because I can only pair one watch at any time with my phone, I had to "forget" the moto360 in order to pair with the LG G Watch. Now I cannot seem to connect to Google App API (GCM or play services). I am getting the following error: I/GMPM ( 2746): App measurement is starting up E/GMPM ( 2746): getGoogleAppId failed with status: 10 E/GMPM ( 2746): Uploading is not possible. App measurement disabled This error

Show ongoing notifications in Android Wear

扶醉桌前 提交于 2019-12-02 20:43:43
I've been playing around with Android Wear and making some dummy apps. What I've noticed is that Android Wear doesn't seem to show the notifications that are ongoing,i.e., notifications with setOngoing(true) . Any way to show these notifications on Wear??? On-going notifications will not show up on Wearable devices. Instead you have to implement a Wear App on the wearable and show cards from there. barkside's answer is correct. I recently wrote an article describing the steps in details, but basically: Create a wearable app with a service implementing WearableListenerService. Send a data item