ibm-wearables-sdk-for-mobile / ibm-wearables-android-sdk

Android SDK and examples for developing apps that utilize Wearable Devices. It handles connectivity, data interpretation and gesture recognition.
Apache License 2.0
22 stars 11 forks source link

not getting the Gesture name #4

Open Aeyzaz opened 8 years ago

Aeyzaz commented 8 years ago

Hello. If i am not wrong in the method onInterpretationDetected(String s,Object o){ String gesturename = s }

variable s should be containing gesture name. if no then please guide me how to differentiate which gesture is detected.

Thankyou

cirilla commented 8 years ago

Hi

the variable 's' contains the interpretation name, in case of Gesture detection the name of the interpretation is called 'Classification' the detected gesture name will be returned as additional Info (the second parameter) you can see the implementation here: https://github.com/ibm-wearables-sdk-for-mobile/ibm-wearables-android-sdk/blob/master/mobileedge-mobile/src/main/java/com/ibm/mobilefirst/mobileedge/interpretation/Classification.java

Thanks