wear-os

Android Wear: How to get raw PPG data?

我怕爱的太早我们不能终老 提交于 2019-12-18 09:31:59
问题 I am able to access Heart Rate of User using Optical Heart rate Sensor using SensorEventListener : sensorManager.registerListener(this, sensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE), SensorManager.SENSOR_DELAY_NORMAL); What I need is to get raw PPG data like: https://ars.els-cdn.com/content/image/1-s2.0-S0960077915001344-gr1.jpg Through Google Fit or any other means can I get this data? I looked into Google Fit API usage: https://developers.google.com/fit/android/sensors It gives

Android Wear - start wear activity from handheld action

佐手、 提交于 2019-12-18 06:38:18
问题 I'm sending a notification from an android handheld device to an android wear device. I'd like to include an action with the notification that starts an activity on the android wear device. How do I set the pending intent to an activity on the wear device? I'm able to launch the activity if the notification is created on the wearable, but not if the notification is created on the phone and then sent to the wearable. // creating action for push notification created on handheld public

Android Wear - start wear activity from handheld action

家住魔仙堡 提交于 2019-12-18 06:37:25
问题 I'm sending a notification from an android handheld device to an android wear device. I'd like to include an action with the notification that starts an activity on the android wear device. How do I set the pending intent to an activity on the wear device? I'm able to launch the activity if the notification is created on the wearable, but not if the notification is created on the phone and then sent to the wearable. // creating action for push notification created on handheld public

How to display clear background image on Android Wear notification?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 04:54:13
问题 As far as I can work out, there are two ways to set the background image for a notification in Android Wear. For the record, both start with: Bitmap bitmap; Notification.Builder bob = new Notification.Builder(this) .setContentTitle(title) ...and so on to set up the notification. Also assume that bitmap has been initialized to an appropriately-sized image (though that's another issue). Method 1: bob.setLargeIcon(bitmap); This works, but AFAICT bitmap is always blurred-out in the background of

Is there an NFC API for the Smartwatch 3 (SWR50)

十年热恋 提交于 2019-12-18 01:19:10
问题 Just to be sure and have clarification of that at first, is the NFC of the Smartwatch 3 just an embedded tag or is it a theoretically fully functioning NFC-chip? Hoping it's not just a tag, we want to build an Android Wear app using NFC and for this the biggest question is: Is there (gonna be?) a API to use the NFC chip of the SWR50? If not is there any other way to activate it, or maybe might an updated version of Android Wear bring support for the chip to the smartwatch? Any help is

Unable to push data to android wear (Emulator)

百般思念 提交于 2019-12-17 22:41:02
问题 I have been trying to push data to the android wear emulator. But all in vain. My listener on the emulator is not receiving any calls whatsoever. If anyone else has tried working on wear and pushing data to wear please HELP. This is what my receiver code looks like private GoogleApiClient mGoogleApiClient; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_qrcode_generation); mGoogleApiClient = new

Custom UI for Android Wear Notifications

a 夏天 提交于 2019-12-17 21:17:48
问题 Hii I want to create Custom UI for android wear notification, and not AW app. Please suggest if there are any libraries or anything available for this. 回答1: It is not available yet, most likely it will be in the future. EDIT: Future is now. You can do this by passing own custom Activity by setDisplayIntent() , code sample: public Notification buildNotification(Context context) { Intent displayIntent = new Intent(context, AnimatedNotificationDisplayActivity.class); displayIntent.putExtra

Android exact Alarm is always 3 minutes off

假装没事ソ 提交于 2019-12-17 10:29:08
问题 I have an app which uses the AlarmManager to regularly wake up the phone at full hour and send a message to an Android Wear watch which than makes a short vibration. I have two users with a Samsung Galaxy S6 with stock Android 5.1.1 and the Sony SW 3 with 5.1.1 who experience a weird bug. At the very first full hour the vibration is at the exact time but all other vibrations are 3 minutes delayed. Sometimes even the first full hour vibration is delayed. Here is some code: final Calendar time

Fail to create Android virtual Device, “No system image installed for this Target”

时间秒杀一切 提交于 2019-12-17 10:23:15
问题 Unable to create Android Virtual Device i follwed this link. I installed all ARM images for each Android more than 4.0. I installed intel & MIPs as well. But, still my AVD Manager is saying "NO System images installed for this target". why, so? 回答1: In order to create an Android Wear emulator you need to follow the instructions below: If your version of Android SDK Tools is lower than 22.6, you must update Under Android 4.4.2, select Android Wear ARM EABI v7a System Image and install it.

Get Heart Rate from “Sensor” Samsung Gear Live

巧了我就是萌 提交于 2019-12-17 09:47:21
问题 How do I get the heartrate from the attached sensor on the Samsung Gear Live I just tried to list all Sensors by SensorManager mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); List<Sensor> deviceSensors = mSensorManager.getSensorList(Sensor.TYPE_ALL); for(Sensor s : deviceSensors){ Log.i(TAG, "" + s.getName()); } But I only get theses Sensors: 07-09 23:18:05.047 3269-3269/com.sample.soma.wapp I/MyActivity﹕ MPU6515 Acceleration Sensor 07-09 23:18:05.047 3269-3269/com