Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE
[Web applicaiton]Get Hrm data from Gear S3
Good day developers.
I’m trying to Hrm detecting Web application for this vacation.
It’s based on open source from Samsung HelloAccesary and HeartRateMonitor sample.
My purpose is detecting Heartreate, also it passes data to my Phone.
So, Phone(OS is Android)’s apk will compare rate, if the data over ‘120’, then it make events.
But problem is apk can’t distinguish the Rate. It always distinguish ‘message’ is bigger than ‘heart_attack_rate’.
However, the value is low.
If you can help me, please give som advice
Thnak you.
ps. at the below, there’s code.
public int cmp_number(String num1, String num2)
{ int store_num = num1.compareTo(num2); return store_num;} //Function, which compare two String values
// 180806 public void onReceive(int channelId, byte[] data)
{ final String message = new String(data);
String heart_attack_rate="120"; //heart attack rate
int cmnumber=cmp_number(heart_attack_rate,message); //compare to values
if (cmnumber<0)
{ addMessage("Detected Hrm Rate: ", message);
addMessage("Detected number: ", Integer.toString(cmnumber)); }//normal state
else
{ updateTextView("Heart attack!!");
addMessage("Heart attack happened: ", message);
addMessage("Detected number: ", Integer.toString(cmnumber));// for looking compareto() value
} }//heart attak happen
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio