Quantcast
Jump to content


Samsung Gear S2 Tizen Smartwatch


Alex

Recommended Posts



  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Similar Topics

    • By Blackbird
      I plugged a USB microphone into TV to record external audio. In my .NET app I can detect it with AudioManager.GetConnectedDevices(). To record audio I set the privileges (microphone) and follow the instructions here:
      https://docs.tizen.org/application/dotnet/guides/multimedia/raw-audio/
      I tried both methods sync and asysnc:
      https://docs.tizen.org/application/dotnet/api/TizenFX/API11/api/Tizen.Multimedia.AudioCapture.html
      https://docs.tizen.org/application/dotnet/api/TizenFX/API11/api/Tizen.Multimedia.AsyncAudioCapture.html
      I instantiate AudioCapture or AsyncAudioCapture objects and when I invoke the Prepare() method the app crashes without any exception or error message.
      Simplified code snippet:
      AudioCapture audioCapture = new AudioCapture(44100, AudioChannel.Mono, AudioSampleType.S16Le); int bufferSize = audioCapture.GetBufferSize(); const int RecordingSec = 1; bufferSize *= 10 * RecordingSec; audioCapture.Prepare(); // THIS LINE CRASHES byte[] buffer = audioCapture.Read(bufferSize); The same result is on two different models (Tizen 6.0 and Tizen 6.5).
      How can I record audio from microphone on Tizen TV? What am I missing?
    • By Samsung Newsroom
      A sensor's maximum and minimum values are crucial for calibration, data interpretation, threshold setting, user interface, error handling, sensor selection, and performance optimization.
      Understanding the expected range of values helps identify and handle sensor errors or anomalies, and selecting the right sensor for the intended use case is essential. Efficient use of sensor data, especially in resource-constrained environments like mobile devices, can optimize data processing algorithms.
      The maximum and minimum values of sensors play a crucial role in the accurate and efficient functioning of sensor-based applications across various domains. In this tutorial, a wearable application is developed to collect the maximum and minimum ranges of sensors from a Galaxy Watch running Wear OS powered by Samsung. This tutorial shows how to retrieve all sensor ranges together, as well as from one specific sensor separately.
      Environment
      Android Studio IDE is used for developing the Wear OS application. In this tutorial, Java is used, but Kotlin can also be used.
      Let’s get started
      The SensorManager library is used here to collect sensor data from a Galaxy Watch running Wear OS powered by Samsung.
      Retrieve the maximum range of a sensor
      To get access and retrieve the maximum ranges from the sensor:
      In Android Studio, create a wearable application project by selecting New Project > Wear OS > Blank Activity > Finish. To access the sensor, add the body sensor in the application’s “manifests” file.
      <uses-permission android:name="android.permission.BODY_SENSORS" /> To run the application on devices with Android version 6 (API level 23) or later, you need runtime permission from the user to use the BODY_SENSORS APIs.
      Add the following code snippet to the onCreate() method before calling any sensor operations:
      if (checkSelfPermission(Manifest.permission.BODY_SENSORS) != PackageManager.PERMISSION_GRANTED) { requestPermissions(new String[]{Manifest.permission.BODY_SENSORS}, 1); } else { Log.d("TAG___", "ALREADY GRANTED"); } After this code executes, a pop-up window appears and requests permission from the user. The sensor APIs return values only if the user grants permission. The application asks for permission only the first time it is run. Once the user grants permission, the application can access the sensors.
      Figure 1: Permission screen
      More details about runtime permissions can be found here.
      Create an instance of the SensorManager library before using it in the code.
      private SensorManager sensorManager; sensorManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE); To retrieve the maximum range of all sensors, create a sensor list using API Sensor.TYPE_ALL.
      List<Sensor> sensors = sensorManager.getSensorList(Sensor.TYPE_ALL); ArrayList<String> arrayList = new ArrayList<String>(); for (Sensor sensor : sensors) { if (sensor != null) { arrayList.add(sensor.getName()); arrayList.add(sensor.getMaximumRange() + ""); arrayList.add(sensor.getResolution() + ""); } } arrayList.forEach((n) -> System.*out*.println(n)); The above code shows the sensor name, maximum range, and resolution. You can get all the available data from the sensors, such as type, vendor, version, resolution, maximum range, and power consumption, by applying this same approach.
      Remember, sensor information may vary from device to device.
      Additionally, not every sensor that appears in the logcat view is accessible. Third-party applications are still not allowed to access Samsung's private sensors using the Android SensorManager. You get a “null” value if you try to access the private sensors.
      Moreover, there are no plans to make these sensors available to the public in the near future.
      You can check my blog Check Which Sensor You Can Use in Galaxy Watch Running Wear OS Powered by Samsung to find out which sensors are accessible on your Galaxy Watch and which are not.
      Retrieve the minimum range of a sensor
      The minimum range is the complement of maximum range.
      If the maximum range is x, then the minimum range can be calculated like this: x*(-1) = -x.
      If a specific sensor value should always be absolute, then the minimum range is zero (0).
      There is no direct API available to retrieve the minimum range of sensors from Galaxy Watch.
      Get a specific sensor value
      To get specific sensor values from a Galaxy Watch, you can filter the sensor list or use the getDefaultSensor() method. Here is an example that demonstrates how to do this. Add the necessary permission in the “manifests” file for the accelerometer sensor:
      <uses-feature android:name="android.hardware.sensor.accelerometer" /> Use the following code in your Activity or Fragment to retrieve the accelerometer data:
      sensor = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); if (sensor != null) { textView_maxV.setText(textView_maxV.getText() + "" + sensor.getMaximumRange() + ""); textView_resolution.setText(textView_resolution.getText() + "" + sensor.getResolution() + ""); } Ensure you have added the TextView element to your XML file. Output of the above code:
      Figure 2: Maximum range and resolution of the accelerometer
      Remember, sensor ranges may vary from device to device. You may get different values for different Galaxy Watch models.
      Download the example from this blog:
      SensorMinxMax (313.2KB) Sep 10, 2024 Summary
      This article demonstrates how you can retrieve the maximum and minimum ranges of sensors from your Galaxy Watch running Wear OS powered by Samsung. You can also use the above approaches to get other necessary available information from the watch that can be used for the precise and effective operation of sensor-based applications in a variety of fields.
      If you have any questions about or need help with the information in this article, you can reach out to us on the Samsung Developers Forum or contact us through Developer Support.
      View the full blog at its source
    • By Mahesh Gadhe
      my tizen app is working fine on tizen 4 same is not working on tizen 7
      when i am trying to install the app  i am getting this:
      Unable to install .please try again later .if the problem persist, reinstall the application from the install web app menu or install from usb device menu and try again.
      what  will be the issue for this  as I am not able to install the app on tizen os 7 
       
       
    • By Mahesh Gadhe
      <article>
              <div><img id="imageTag" src=""></div>
              <div><video id="videoTag" onended="onVideoEnded();" src=""></video></div>
              <!--<div id="YoutubePlayer" width="600" height="400" src="" frameborder="0" sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-top-navigation" style="z-index: 1;"></div>-->
              <div style="position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); z-index:999;">
              <div id="YoutubePlayer" style="width:600px; height:400px;"></div>
          </div>

          </article>
      As to play the youtube video we need to use the youtube iframe, we are facing challenge here. When the youtube video plays on the TV, we lose control over app and hence next video as per CMS does not play. Same happens vice versa i.e when a video from CMS starts playing we are not able to play youtube video if it is next in the list.
    • By Mahesh Gadhe
      Hi everyone,
      I’m having trouble launching an app on Tizen 5.0 of 55'' inch. There are no error messages or logs; the app tries to start but then says it failed to open, even though it was successfully downloaded and installed. Any help would be appreciated.
      find the below attached ss for reference  (details of model)






×
×
  • Create New...