wear-osandroid-wear-data-api

Wrist gesture detection on Android Wear based smartwatches: is it possible?


Does anyone have any information to share regarding gesture detection using wrist movements (in contrast to swipe movements on the touchscreen) with Android Wear?

Is there official support for this in the API? If not, do you think this can be enabled via custom ROMs? Considering Android Wear is... well, Android, and Android has all the API functions to get data from the accelerometer of an Android based smartphone (and lots of helpful development sources), I assume it wouldn't be too hard? Or am I overlooking something?

Someone said the following at http://forum.xda-developers.com/android-wear/development/gesture-detection-using-wrist-t2936656

Use asus remote camera app for android wear. If you twist your watch it will take a picture with your smartphone camera!

To which I replied:

So wrist gesture detection is perfectly possible it seems? But can you or anyone else give me some additional background about Android Wear: Should I see Android Wear as a simple extension of the Android API? By which I mean: can I utilise all the Android API functions related to interpreting smartphone/tablet sensor data, provided the smartwatch has that sensor? (e.g accelerometer)

Since I was looking in this particular section related to Wearables (Remove the spaces: developer . android . com/training/building-wearables.html ) and I couldn't find any information about wrist gesture detection.
Is that simply because everything else from the Android API is automatically also applicable to smartwatch development?

(As one can tell, I'm quite new to mobile development.)

So far no answer. I'm now asking here in hope I get an answer...


Solution

  • Wrist gestures were added in Android Wear 5.1 however at the time of this response, Android Wear 5.1 is only available on the LG Watch Urbane. This update is expected on other Wear devices in the upcoming weeks

    Two common wrist gestures are interpretted by the system as swipe up/down. You change the speed of the flick either away or towards you.

    If you flick your wrist away from you quickly, then back slowly that will cause a scroll down.

    If you turn your wrist slowly away then flick it quickly back towards you, this will scroll up.

    You can see the wrist gestures in action here - https://www.youtube.com/watch?t=14&v=_R0qbB4hVbU