How to draw a paint without delay in android
<p>I am create a paint application.In this application I draw a line or a word it take some delay for display and it not display properly.How to draw a paint without delay in android.Any one please Help me.....That paint come with my finger.</p>

<pre><code>private static Paint mPaint;

    mPaint = new Paint();
    mPaint.setAntiAlias(true);
    mPaint.setDither(true);
    mPaint.setColor(0xFFFF0000);
    mPaint.setStyle(Paint.Style.STROKE);
    mPaint.setStrokeJoin(Paint.Join.ROUND);
    mPaint.setStrokeCap(Paint.Cap.ROUND);
    mPaint.setStrokeWidth(15);

public void colorChanged(int color) {
    mPaint.setColor(color);
}

public class DrawView extends View {
    static final float MINP = 0.10f;
    static final float MAXP = 1.0f;
    private Drawable mImage;
    private Canvas mCanvas;
    private Path mPath;
    private Paint mBitmapPaint;
    @SuppressWarnings("unused")
    private boolean isClearCanvas;

    public DrawView(Context context) {
        super(context);
        mImage = getResources().getDrawable(R.drawable.border);
        mImage.setBounds(0, 0, w_Layout, h_Layout);
        mBitmap = Bitmap.createBitmap(w_Bitmap, h_Bitmap, Bitmap.Config.ARGB_8888);
        mCanvas = new Canvas(mBitmap);
        mPath = new Path();
        mBitmapPaint = new Paint(Paint.DITHER_FLAG);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        canvas.drawBitmap(mBitmap, 0, 0, mBitmapPaint);
        canvas.drawPath(mPath, mPaint);
        mImage.draw(canvas);
    }

    private float mX, mY;
    private static final float TOUCH_TOLERANCE = 1;

    private void touch_start(float x, float y) {
        mPath.reset();
        mPath.moveTo(x, y);
        mX = x;
        mY = y;
    }

    private void touch_move(float x, float y) {
        float dx = Math.abs(x - mX);
        float dy = Math.abs(y - mY);
        if (dx &gt;= TOUCH_TOLERANCE || dy &gt;= TOUCH_TOLERANCE) {
            mPath.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2);
            mX = x;
            mY = y;
        }
    }

    public void clearCanvas() {
        isClearCanvas = true;
        mBitmap = Bitmap.createBitmap(w_Bitmap, h_Bitmap, Bitmap.Config.ARGB_8888);
        mCanvas = new Canvas(mBitmap);
        mPath = new Path();
        mBitmapPaint = new Paint(Paint.DITHER_FLAG);
        invalidate();
    }

    private void touch_up() {
        mPath.lineTo(mX, mY);
        mCanvas.drawPath(mPath, mPaint);
        mPath.reset();
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        float x = event.getX();
        float y = event.getY();

        switch (event.getAction()) {
        case MotionEvent.ACTION_DOWN:
            touch_start(x, y);
            invalidate();
            break;
        case MotionEvent.ACTION_MOVE:
            touch_move(x, y);
            invalidate();
            break;
        case MotionEvent.ACTION_UP:
            touch_up();
            invalidate();
            break;
        }
        return true;
    }
</code></pre>

<p>In this Below Screen,I draw a line with finger.My requirement is that line draw with my finger.but it takes some milliseconds for display.</p>

<p>/media/3E38332B3832E217/first screen.png
/media/3E38332B3832E217/secondscreen.png</p>

<p>and in this below screen I draw a letter A slowly  it will be display properly.this letter Draw fast it not display properly(that means I start to draw a letter and end that letter can be display like a line from starting point to ending point.)</p>

<p>/media/3E38332B3832E217/thirdscreen.png</p>
