How to drawing on surface view canvas in android
<p>I have a a problem in my surface view . Actually when i draw any object on surface view then during drawing(onMoving) it's not show, but when i release my finger from surface view then drawing object seen. So any one solve it plz.</p>

<p>My code is...............</p>

<pre><code>  public boolean onTouch(View view, MotionEvent motionEvent) {
    if(motionEvent.getAction() == MotionEvent.ACTION_DOWN){

        currentDrawingPath = new DrawingPath();
        currentDrawingPath.paint = currentPaint;
        currentDrawingPath.path = new Path();
        currentBrush.mouseDown(currentDrawingPath.path, motionEvent.getX(), motionEvent.getY());    

    }else if(motionEvent.getAction() == MotionEvent.ACTION_MOVE){

        currentBrush.mouseMove( currentDrawingPath.path, motionEvent.getX(), motionEvent.getY() );      

    }else if(motionEvent.getAction() == MotionEvent.ACTION_UP){
        currentBrush.mouseUp( currentDrawingPath.path, motionEvent.getX(), motionEvent.getY() );            
        drawingSurface.addDrawingPath(currentDrawingPath);


    }

    return true;
}
</code></pre>
