• Learn
    • Code Lab
    • Foldables and Large Screens
    • One UI Beta
  • Develop
    • Mobile/Wearable
    • Galaxy GameDev
    • Galaxy Themes
    • Galaxy Watch
    • Health
    • Samsung Blockchain
    • Samsung DeX
    • Samsung IAP
    • Samsung Internet
    • Samsung Pay
    • Samsung Wallet
    • View All
      • Galaxy AR Emoji
      • Galaxy Accessory
      • Galaxy Edge
      • Galaxy Z
      • Galaxy Performance
      • Galaxy FM Radio
      • Galaxy S Pen Remote
      • Galaxy Sensor Extension
      • PENUP
      • Samsung Automation
      • Samsung Neural
      • Samsung TEEGRIS
      • Samsung eSE SDK
      • Galaxy Watch for Tizen
      • Watch Face Studio
      • One UI Watch for Tizen
      • Galaxy Watch Studio Converter
      • Samsung IAP for Galaxy Watch (Tizen)
    • Visual Display
    • Smart TV
    • Smart Hospitality Display
    • Smart Signage
    • Digital Appliance
    • Family Hub
    • Platform
    • Bixby
    • Knox
    • SmartThings
    • Tizen.NET
  • Design
    • Design System
    • One UI
    • One UI Watch
    • Smart TV
  • Distribute
    • Galaxy Store
    • TV Seller Office
    • Galaxy Store Games
    • Instant Plays
  • Support
    • Developer Support
    • Remote Test Lab
    • Samsung Android USB Driver
    • Galaxy Emulator Skin
  • Connect
    • Blog
    • News
    • Forums
    • Events
    • Samsung Developer Conference
    • SDC23
    • SDC22
    • SDC21
    • SDC19 and Previous Events
  • Sign In
Top Global Search Form
Recommendation
  • Blog
  • Code Lab
  • Foldable and Large Screen Optimization
  • Forums
  • Galaxy Emulator Skin
  • Galaxy GameDev
  • Health
  • Remote Test Lab
  • SDC22
  • Watch Face Studio
All Search Form
Recommendation
    Suggestion
      All Search Form
      Filter
      Filter
      Filter
      • ALL (54)
      • DOCS
      • SDK
      • API REFERENCE
      • CODE LAB
      • BLOG
      • NEWS/EVENTS
      • OTHERS
        api reference code lab blog news/events
      1. tutorials | galaxy watch, health

      blog

      Check Which Sensor You Can Use in Galaxy Watch Running Wear OS Powered by Samsung

      samsung has introduced galaxy watch4, a new wearable device that is integrated with google’s wear os, unleashing a new era of wearable technology. the device’s vast sensor lineup provides the user with everyday health related data, resulting in better user experiences and improved capabilities. sensors are one of the main attractions for all developers of wearable applications. there are two special cases that can happen during sensor implementation. firstly, a device may or may not support a particular sensor. secondly, some sensors may not be accessible by third-party applications on a particular device. therefore, you need to check whether a particular sensor is accessible or not before launching the application. if the application cannot receive data from a particular sensor, you must inform the user. the application layout can also be modified for a better user experience. the body sensors of wearable devices provide highly advanced data that helps to monitor the condition of the human body. health applications collect health data from these sensors. the body_sensors package allows an application to access body sensors, such as heart rate. although wear os android apis are available for galaxy watch4, you might be unsure if specific body sensor data is accessible for your application on galaxy watch. in this article, i show you how to check if a particular body sensor is accessible on galaxy watch4. get started in the following example, i develop a wearable app for galaxy watch4 that shows whether a particular sensor is accessible or not. environment wear os applications have to be developed using the android studio ide. here, i am assuming you have already successfully installed android studio on your pc. to start developing a new wearable application, open android studio and select new project > wear os > blank activity > finish. the new application project is now ready for you to create your application. step-by-step example of checking sensor accessibility step 1: galaxy watch4 only supports api level 28 and above. therefore, you need to set the target api level at 28 or higher to develop a wearable application for it. to do this, you can set the minimum sdk version while creating your project, or you can modify the value in build.gradle > minsdk after the project has been created. step 2: the most important part of sensor implementation is to set the appropriate permission. to do this, you have to add the body_sensors permission in the android manifest. <uses-permission android:name="android.permission.body_sensors" /> step 3: starting from android version 6 (api level 23), an application has to request runtime permission from the user to access any sensor data. if the user grants the permission, the application is then able to access the data. add the following code to the oncreate() method to request user permission: if (checkselfpermission(manifest.permission.body_sensors) != packagemanager.permission_granted) { requestpermissions( new string[]{manifest.permission.body_sensors}, 1); } else { log.d(tag, "already granted"); } in the output, a pop-up is shown while installing the application for the first time. if the user selects “allow,” the application gets permission to access the body_sensors library information and the pop-up does not reappear when the application is launched again. if the user selects “deny,” the application is not able to get the sensor data. figure 1: sensor data access permission requested from the user during installation for more details about runtime permissions, check here. note : to use the step counter or step detector sensor, you also need the activity_recognition runtime permission. for more information, you can check the following links: https://developer.android.com/guide/topics/sensors/sensors_motion#sensors-motion-stepcounter https://developer.android.com/guide/topics/sensors/sensors_motion#sensors-motion-stepdetector step 4: import the following libraries to access sensor data in the java class: import android.hardware.sensor; import android.hardware.sensormanager; you can also press alt + enter when selecting a particular function to import the required packages automatically. step 5: create an object of the sensormanager class and instantiate it: sensormanager msensormanager = ((sensormanager)getsystemservice(sensor_service)); step 6: to check the list of sensors integrated with galaxy watch4, add the following code: list<sensor> sensors = msensormanager.getsensorlist(sensor.type_all); arraylist<string> arraylist = new arraylist<string>(); for (sensor sensor : sensors) { arraylist.add(sensor.getname()); } arraylist.foreach((n) -> system.out.println(n)); output of the above code snippet: figure 2: list of available sensors in logcat (partial view) in the output, you can see all the sensors available in galaxy watch4 (but remember that sensors which appear in the logcat output may not be accessible for third-party developers) and you can also see the names of private sensors integrated within the watch. some particular sensors are only accessible from third-party applications. note that the only real, hardware sensors in galaxy watch4 are the accelerometer, gyroscope, pressure, light, magnetic, and heart rate sensor (ppg). all other sensors are composites of actual hardware sensors. for example, the pedometer sensor combines data from the accelerometer and gyroscope sensors. the legacy sensormanager apis only work for real physical sensors; composite sensors will not work. step 7: check the accessibility of a particular sensor using the following code: if ((msensormanager.getdefaultsensor(sensor.type_heart_rate)) != null) { // if the sensor is accessible, then do something } else { // if the sensor is inaccessible, then do something } if the sensor is not accessible on galaxy watch4 from a third-party application, the method returns a null value. in this example, we have checked the heart rate sensor using the sensor.type_heart_rate api. you can check any other sensor by placing your sensor type in this function. note that the above process is a way of getting raw sensor data directly from the watch. if you want to get processed sensor data using an api, you can use the samsung privileged health sdk instead. moreover, as all sensors are not open for third-party developers and only the actual physical sensors are accessible using sensormanager, it is recommended to use the samsung privileged health sdk. through this sdk, you can also get some rare sensor data (processed) like spo2, body composition, ecg, ppg and so on, which is not accessible through sensormanager. testing you can check out the sample app (download it using the link below) and try it out on your galaxy watch4. check sensor availability (408kb) to import the sample application, open android studio and go to file > open > checksensoravailability > build.gradle. to run the sample application, connect your galaxy watch4 with your pc and run the application. make sure the usb debugging is set to on in your watch. in this sample application, we have checked four sensors. here, the heart rate and pressure sensors (marked in green) are accessible from a third-party application on galaxy watch4. the other two sensors, proximity and heartbeat (marked in red), are not accessible. figure 3: output of the sample application on galaxy watch4 conclusion we have demonstrated a way you can check the accessibility of sensors on galaxy watch4. if you want to develop any wearable app for wear os devices using body sensor data, it is recommended to first check if the data is accessible to third-party applications on the device.

      Shamima Nasrin

      https://developer.samsung.com/sdp/blog/en-us/2022/05/25/check-which-sensor-you-can-use-in-galaxy-watch-running-wear-os-powered-by-samsung
      1. Galaxy Watch Studio Converter

      doc

      Convert a Watch Face

      convert a galaxy watch studio watch face to convert a galaxy watch studio watch face: launch the galaxy watch studio converter. click ‘browse’ and select the author certificate you used when building the tpk. a. enter the correct password to load the author certificate. click ‘browse’ and select the “tpk” watch face file you want to convert. a. if the selected tpk file passes the author certification, the conversion can continue. b. after the importing, the package name is automatically changed, if necessary, to conform to the wear os policy. to test whether the watch face runs on galaxy watch for wear os powered by samsung: a. connect a galaxy watch for wear os powered by samsung to your computer. b. in the galaxy watch studio converter, click “run on device” and select the connected watch. to generate the converted package file: a. click ‘build’. b. define a package name for wear os powered by samsung. c. enter your key password. note : all watch face designers need a certificate. to generate your certificate: click ‘build’. for first time users, select create new key. for returning users, search for your existing key in the key store path. upload your certificate file and enter your password. enter key store information, key information and your personal information. click ok. limitations due to operating system differences, the galaxy watch studio converter has several limitations. when you test or build the conversion in the galaxy watch studio converter, if elements of your watch face cannot be converted, a dialog box appears with the reason: watch faces implementing the weather api cannot be converted. the galaxy store in-app-purchase (iap) feature is removed during conversion, as it is not compatible with galaxy watch for wear os powered by samsung. the converted watch face supports the following samsung health data only: steps and heartrate. in galaxy watch for wear os powered by samsung, a special consent is required for a downloaded watch face to receive heart rate updates. to get the heart rate information updated properly, sellers can guide the customers to the following. note : the watch face is only updated with heart rate measure after the consent is given. if the galaxy watch studio converter does not support converting your watch face or its features, you can import your galaxy watch studio files to watch face studio and continue developing it for wear os powered by samsung directly.

      https://developer.samsung.com/gws-converter/convert-watchface.html
      1. Galaxy Watch Studio Converter

      doc

      Overview

      galaxy watch studio converter the galaxy watch studio converter lets you quickly and easily convert a watch face created in galaxy watch studio to a watch face for galaxy watch using wear os powered by samsung. the converted watch faces are compatible with galaxy watches with wear os powered by samsung, including the galaxy watch 4, and they follow all wear os policies. any watch faces you convert can be distributed through the play store.

      https://developer.samsung.com/gws-converter/overview.html
      1. Develop
      2. Galaxy Watch for Tizen

      doc

      Watch Face Design Review

      watch face design review thank you for your interest in becoming a galaxy watch face designer! for galaxy watch4 and later, you are no longer required to have a watch face design partnership with samsung in order to distribute watch face designs. starting with galaxy watch4, samsung switched the watch os from tizen to wear os powered by samsung and new watch apps developed for galaxy watch4 and later are distributed through google play store. if you are a first-time watch face designer or developer: welcome! you are not required to have a watch face design partnership with samsung in order to distribute your designs in play store. discover the options for developing apps for galaxy watch, including watch face studio and the play store asset creator. you can learn more about the principles of wear os development and distributing to wear os from the android developer web site. if you are a previous watch face designer or developer: on february 8, 2023, you will no longer be able to register new tizen-based watch apps in seller portal. instead, we ask that you create your new watch apps for wear os powered by samsung and distribute them from the play store for the latest galaxy watches. note that you can continue to update your existing tizen-based watch apps in seller portal. if you use galaxy watch studio for tizen, we provide some tools to help you transition to wear os powered by samsung, including watch face studio and the galaxy watch studio converter.

      https://developer.samsung.com/galaxy-watch-tizen/studio/tutorial/design-review.html
      1. Watch Face Studio

      doc

      Overview

      watch face studio the watch face is one of the most visible ways that users can express themselves on their smartwatches. creating a watch face is a great way to showcase your brand for users on wear os. watch face studio is a graphic authoring tool that enables you to create watch faces for the wear os smartwatch ecosystem. this includes watches like the galaxy watch4, which runs wear os powered by samsung. it offers a simple and intuitive way to add images and components, and to configure the watch movement. you can also test the watch face on a connected device. watch face studio version 1.4.13 or higher supports watch face format designed for wear os. you can build watch faces that run on the galaxy watch and other watch devices, with wear os targeting api level 30 and higher.

      https://developer.samsung.com/watch-face-studio/overview.html
      1. Develop
      2. Galaxy Watch

      web

      Galaxy Watch | Samsung Developers

      galaxy watch learn about your options for developing apps for galaxy watch develop apps for galaxy watch, running on wear os powered by samsung to start creating an application for galaxy watch, click the button below to view the principles of development. get started watch face studio get acquainted with watch face studio, which lets you turn your ideas into wear os watch faces! learn more galaxy watch studio converter you can easily convert watch faces you’ve created with galaxy watch studio into wear os watch faces. try it now! get started play store asset creator create a professional-looking product detail page for play store using the asset creator, a photoshop template that is quick and easy to use. learn more develop apps for galaxy watch, running on tizen all the documents and data you need to develop galaxy watch apps for tizen get started community forums ask questions and find answers in our forums. watch face studio galaxy watch for tizen

      https://developer.samsung.com/galaxy-watch/
      1. Connect
      2. Samsung Developer Conference

      web

      SDC22 | Expand health experiences with Galaxy Watch

      session health, wearable expand health experiences with galaxy watch the galaxy watch’s powerful bioactive sensor, together with the wear os powered by samsung, is transforming mobile health experiences. and now, this technology is even more powerful thanks to the samsung privileged health sdk. find out how the samsung privileged health sdk is allowing developers to retrieve raw or analyzed sensor data for their applications, including bia, ecg, blood oxygen level or sweat loss, and help users’ to accurately monitor their health stats. speakers sungchull lee samsung electronics code lab sdc22 measure blood oxygen level on galaxy watch create a health app for galaxy watches powered by wear os, utilizing the new samsung privileged health sdk to trigger and obtain blood oxygen level (spo2) measurement results. 30 mins start sdc22 measure blood oxygen level and heart rate on galaxy watch create a health app for galaxy watches powered by wear os, utilizing the new samsung privileged health sdk to trigger and obtain results of simultaneous blood oxygen level (spo2) and heart rate measurements. 40 mins start

      https://developer.samsung.com/conference/sdc22/sessions/expand-health-experiences-with-galaxy-watch
      1. Galaxy Watch Studio Converter

      doc

      FAQ

      faq q01. which watch devices support the converted watch faces? the converted watch faces are compatible with galaxy watches with wear os powered by samsung, including the galaxy watch 4. q02. how do i distribute my converted watch face? the converted watch faces are compatible with galaxy watches with wear os powered by samsung, including the galaxy watch 4. you can distribute your converted watch face through google play. q03. are there any issues using converted watch faces on a device with a different resolution? a watch face built by the converter automatically scales the screen to fit the new device. this process is automatic and should produce no issues, but it is recommended that you test the face on the new device afterwards as the conversion can result in a loss of quality. q04. what is the author certificate? why it is necessary? the author certificate is a private key file (with the file extension .p12) that you registered when you built the .tpk file on galaxy watch studio. to prevent a non-author from distributing the converted results, the converter requires the author's certificate and password. q05. if a watch face includes health functions that are not supported in galaxy watch studio converter, what happens if i proceed with the conversion? any unsupported health function is not updated, so the displayed value or the object linked to the value will not change on the converted watch face. q06. do you have any plans to improve the features which are not currently supported? the current limitations the converter tool are due to platform differences, making future improvements difficult. for creating watch faces on the new platform, we recommend you use the watch face studio.

      https://developer.samsung.com/gws-converter/faq.html
      1. Design
      2. One UI Watch for Tizen

      doc

      Galaxy Watch

      galaxy watch lifestyle photo assets notegalaxy store supports watch faces for galaxy watch3 and earlier (samsung watches running on tizen). watch faces for galaxy watch4 and later (running on wear os powered by samsung) are only supported in the play store and chinese galaxy store. download a lifestyle photo asset by clicking its thumbnail.

      https://developer.samsung.com/one-ui-watch-tizen/lifestyle-photo-assets/galaxy-watch.html
      1. Design
      2. One UI Watch for Tizen

      doc

      Galaxy Watch3

      galaxy watch3 lifestyle photo assets notegalaxy store supports watch faces for galaxy watch3 and earlier (samsung watches running on tizen). watch faces for galaxy watch4 and later (running on wear os powered by samsung) are only supported in the play store and chinese galaxy store. download a lifestyle photo asset by clicking its thumbnail.

      https://developer.samsung.com/one-ui-watch-tizen/lifestyle-photo-assets/galaxy-watch3.html
      No Search Results
      No Search results. Try using another keyword.
      • <<
      • <
      • 1
      • 2
      • 3
      • 4
      • 5
      • 6
      • >
      • >>
      Samsung Developers
      Samsung Developers
      Quick Link
      • Android USB Driver
      • Code Lab
      • Galaxy Emulator Skin
      • Foldables and Large Screens
      • One UI Beta
      • Remote Test Lab
      • Developer Support
      Family Site
      • Bixby
      • Knox
      • Samsung Pay
      • SmartThings
      • Tizen
      • Samsung Research
      • SamsungOpen Source
      • Samsung Dev Spain
      • Samsung Dev Brazil
      Legal
      • Terms
      • Privacy
      • Open Source License
      • Cookie Policy
      Social Communications
      • Facebook
      • Instagram
      • Twitter
      • YouTube
      • Buzzsprout
      • Rss
      • Linkedin
      • System Status
      • Site Map
      • System Status
      • Site Map
      • facebook
      • instagram
      • twitter
      • youtube
      • buzzsprout
      • rss
      • linkedin

      Copyright © 2023 SAMSUNG. All rights reserved.