Here are the examples of the java api class android.gesture.Prediction taken from open source projects.
1. GestureTest#onGesturePerformed()
Project: codeexamples-android
File: GestureTest.java
File: GestureTest.java
@Override public void onGesturePerformed(GestureOverlayView overlay, Gesture gesture) { ArrayList<Prediction> predictions = gestureLib.recognize(gesture); for (Prediction prediction : predictions) { if (prediction.score > 1.0) { Toast.makeText(this, prediction.name, Toast.LENGTH_SHORT).show(); } } }