Code example for GestureLibrary

Methods: recognize

0
		} 
	} 
	 
	@Override 
	public void onGesturePerformed(GestureOverlayView overlay, Gesture gesture) {
		ArrayList<Prediction> predictions = mLibrary.recognize(gesture);
 
	    // We want at least one prediction 
	    if (predictions.size() > 0) {
	        Prediction prediction = (Prediction)predictions.get(0);
	        // We want at least some confidence in the result 
	        if (prediction.score > 1.0) {
	            // Show the selection 
	        	startActivity( new Intent(this, PrefsActivity.class) );
	            //Toast.makeText(this, prediction.name, Toast.LENGTH_SHORT).show(); 
	        } 
	    } 
	} 
	private BitmapDrawable getVersionBitmap() {
		String dirpath = "/data/data/" + Config.release_project_name + "/about";
		String buildId = Config.BUILD_ID;