how to draw the scribling using canvas in android?
<p>I want to draw the scribling using canvas in android. I use three options touchesdown, touchesmove and touchesup. The scribling path is appeared when I remove my hand from mouse button.</p>

<pre><code>x = motionEvent.getX();
y = motionEvent.getY();
switch (motionEvent.getAction())
{
    case MotionEvent.ACTION_DOWN:
        currentDrawingPath = new DrawingPath();
        currentDrawingPath.paint = currentPaint;
        currentDrawingPath.path = new Path();
        currentDrawingPath.path.moveTo(x, y);
        mX = x;
        mY = y;

        break;

    case MotionEvent.ACTION_MOVE:
        currentDrawingPath.path.lineTo(mX, mY);
        float dx = Math.abs(x - mX);
        float dy = Math.abs(y - mY);
        isDrawings=true;
        if (dx &gt;= TOUCH_TOLERANCE || dy &gt;= TOUCH_TOLERANCE)
        {
            currentDrawingPath.path.quadTo(mX, mY, (x + mX)/2, (y + mY)/2);
            mX = x;
            mY = y;
        }
        break;

    case MotionEvent.ACTION_UP:

        isDrawings=false;
        currentDrawingPath.path.lineTo(mX, mY);
        drawingSurface.addDrawingPath(currentDrawingPath);
        undoBtn.setEnabled(true);
        redoBtn.setEnabled(false);
        break;
}
</code></pre>

<p>I want to draw the scribling like freehand drawing, where I have to move the mouse the line will following, I need this type of scribling without <code>invalidate()</code> option... please help me.
Thanks in advance....  </p>
