Code example for GestureLibrary

Methods: load

0
		this.gesture = gesture;
	} 
 
	private void updateGestureLibrary() { 
		library = GestureLibraries.fromFile("/sdcard/gestureexample");
		library.load();
	} 
 
	private boolean storeGesture() { 
		if(gesture != null) {
			String name = null;
			if(((EditText) findViewById(R.id.name)).getText() != null) {
				name = ((EditText) findViewById(R.id.name)).getText().toString();
			} 
			if(name == null || name.trim().length() < 1) {
				Toast.makeText(this, "You must provide a name", Toast.LENGTH_SHORT).show();
				return false; 
			} 
			library.addGesture(name, gesture);
			library.save();
			return true;