This library was made exclusively for the development of
Google Glass.
She uses the template library available from Google that is GDK.JAR (
The Glass Development Kit)
More detailed explanations are available on:
https://developers.google.com/glass/develop/overview
This first version is in correctly intercept touches on "TOUCH PAD" Google Glass, which can be:
public static final Gesture LONG_PRESS
public static final Gesture SWIPE_DOWN
public static final Gesture SWIPE_LEFT
public static final Gesture SWIPE_RIGHT
public static final Gesture SWIPE_UP
public static final Gesture TAP
public static final Gesture THREE_LONG_PRESS
public static final Gesture THREE_TAP
public static final Gesture TWO_LONG_PRESS
public static final Gesture TWO_SWIPE_DOWN
public static final Gesture TWO_SWIPE_LEFT
public static final Gesture TWO_SWIPE_RIGHT
public static final Gesture TWO_SWIPE_UP
public static final Gesture TWO_TAP
More detailed explanations are available on:
https://developers.google.com/glass.../android/glass/touchpad/GestureDetector?hl=es
Installation instructions:
- Copy the .xml and .jar files to your custom libraries folder
- Copy the res directory to your projects "Objects" folder
- Make all files copied to the Objects/res folder read only
- Extend your activity with glasslib class, putting this line in your Activity Attributes
#Region Activity Attributes
#Extends: com.visualnet.googleglass.glassActivity
#End Region
Version history:
V1.01:
- initial version with GestureDetector and the various types of Gesture
V1.02:
- included the original sounds and method to play sounds in your glass
IMPORTANT: Whit this library, the Activity_Keypress in intercepted by Library, then you can control by gesture of Google Glass. Look the Example in B4A.
Have fun with it
Special Thanks to Nelson Pires (vpires)