Subscription preference

Notification emails are sent to your Samsung account email address.

* Email : anonymous@samsung.com

  

Close

Wrist gestures in web app for Gear

Forums View
Started by Newbie gothica , 140 Seed Nov 28, 2017 12:33 Replies : 1 View : 779 Likes : 0
Gestures help users perform one-handed interactions in smart watch.
This helps improve single hand usage, for when your users need their other hand to hold onto their shopping or their kids.

Examples:
Android Wear example
Android Wear demo
Android Wear help

How can i achieve the same behaviour in Tizen Web App for Gear? 
- Flick up: rotate wrist out quickly and in slowly
- Flick down:rotate wrist out slowly and in quickly
File Attachments
Post Reply
Board View
Expert Developer armaan.ul.islam9 , 24690 Seed Nov 30, 2017 10:01 Post #1 0
Sharing My Opinion:


# WRIST_IN Activity:

You can easily detect an wrist-in activity using 'Human Activity Monitor' Tizen Web API, Then code your desired functionality on Callback function.


Sample Code

var count=0;

function wristInCB() {
    alert('WRIST_IN activity detected');
    count++;
}

tizen.humanactivitymonitor.start('WRIST_UP', wristInCB);

// tizen.humanactivitymonitor.stop('WRIST_UP'); // End of task

// <tizen:privilege name="http://tizen.org/privilege/healthinfo"/> // in config.xml for permission


Guide: https://developer.tizen.org/development/guides/web-application/sensors/human-activity-monitor

API References: https://developer.tizen.org/development/api-references/web-application?redirect=https://developer.tizen.org/dev-guide/3.0.0/org.tizen.web.apireference/html/device_api/wearable/tizen/humanactivitymonitor.html


# WRIST_OUT Activity:
 
I haven't found any predefined gesture for 'wrist out' activity in Tizen API References.

You may create your own gesture for 'wrist out' using Accelerometer and Gyro Sensor.

https://developer.tizen.org/development/guides/web-application/sensors/device-sensors


To understansd the pattern of Accelerometer and Gyro Sensor reading for a 'wrist out' gesture You may try:

 a) Some 'Research' in the Internet
 b) Or self test and generate sample patterns

# SHAKE Activity:

Similar as WRIST_OUT.

Post Reply