Drawing a smooth curve
<p>I want to create more a smooth curve, not only line angles. This is the picture how I draw at the moment:</p>

<p><img src="http://i.stack.imgur.com/tzHg7.jpg" alt="enter image description here"></p>

<p>Here's my code:</p>

<pre><code>case FREEHAND:
    float[] pts;
    float[] ptk;
    ptk = new float[2];
    imageMatrix.invert(inv);            
    if (mCurrentShape == null) {                
        mCurrentShape = new Line();
        pts = new float[2];
        ((Line) mCurrentShape).setBegin(mDownPoint);
        pts[0] = (float)((Line) mCurrentShape).getBegin().getX();
        pts[1] = (float)((Line) mCurrentShape).getBegin().getY();
        inv.mapPoints(pts);
        ((Line) mCurrentShape).getPath().moveTo(pts[0], pts[1]);
    }
    ptk[0] = (float)currentPoint.getX();
    ptk[1] = (float)currentPoint.getY();
    inv.mapPoints(ptk);
    ((Line) mCurrentShape).getPath().lineTo(ptk[0], ptk[1]);
    break;
</code></pre>

<p>Freehand code:</p>

<pre><code>package aa.bb.cc;
import java.util.ArrayList;
import android.graphics.Path;

public class FreeHand extends Shape{
    private ArrayList&lt;Path&gt;_graphics;

    public FreeHand(){
        super();
        _graphics = new ArrayList&lt;Path&gt;();
    }

    public ArrayList&lt;Path&gt; getGraphicsPath(){
        return _graphics;
    }
}
</code></pre>
