Code example for GestureLibrary

Methods: load

0
  private GestureLibrary gestureLibrary = null;
 
  public ScreenshotGestureListener(Activity activity, int rawResourceId) {
    this.activity = activity;
    gestureLibrary = GestureLibraries.fromRawResource(activity, rawResourceId);
    gestureLibrary.load();
  } 
 
  /* 
   * (non-Javadoc) 
   *  
   * @see android.gesture.GestureOverlayView.OnGesturePerformedListener# 
   * onGesturePerformed(android.gesture.GestureOverlayView, 
   * android.gesture.Gesture) 
   */ 
  @Override 
  public void onGesturePerformed(GestureOverlayView arg0, Gesture gesture) {
    int level = 0;
    if (activity instanceof FeedbackEditActivity) {
      level = ((FeedbackEditActivity) activity).getLevel();
    } else if (activity instanceof FeedbackViewActivity) {