How do i draw the scribling using canvas in android?
<p>I want to draw the scribling using <code>canvas</code> in android like free hand drawing....</p>

<p>Here is my code.....</p>

<pre><code>                             x = motionEvent.getX();
                 y = motionEvent.getY();
            switch (motionEvent.getAction())
              {
            case MotionEvent.ACTION_DOWN:
                td=1;
                 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);
                tm=1;
                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:
                tu=1;
                isDrawings=false;
                currentDrawingPath.path.lineTo(mX, mY);
                drawingSurface.addDrawingPath(currentDrawingPath);
                 undoBtn.setEnabled(true);
                 redoBtn.setEnabled(false);
            break;
            }
</code></pre>

<p>the scrible will appears only in touches up, so please help me to drawing in touchesmove...</p>

<p>Thanks in advance</p>
