Code example for PathMeasure

Methods: getLength

0
	    if (dx >= TOUCH_TOLERANCE || dy >= TOUCH_TOLERANCE) {
	        mPath.quadTo(mX, mY, (x + mX)/2, (y + mY)/2);
	        mX = x;
	        mY = y;
	    } 
	    mPM = new PathMeasure(mPath, false);
	    System.out.println(Float.toString(mPM.getLength()));
	} 
	 
	     
	 
	private void touch_up() { 
	    mPath.lineTo(mX, mY);
	    // commit the path to our offscreen 
	    mCanvas.drawPath(mPath, mPaint);
	    Show = "";
	    Show = getPoints();
	    System.out.println(Show);
	    mPath.reset();
	    /*mPM = new PathMeasure(mPath, false); 
	    System.out.println(Float.toString(mPM.getLength()));