Can I draw with antialiasing on canvas?

Solution 1:

Drawing operations want Paint. In this Paint you set Paint.setFlags(Paint.ANTI_ALIAS_FLAG)

Solution 2:

Check this out. It fairly uses smooth edges.. http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/FingerPaint.html

The paint properties needed to get anti-aliasing is :

     mPaint = new Paint();
     mPaint.setAntiAlias(true);

For drawing use:

     mPath = new Path();
     mPath.reset();
     mPath.moveTo(x, y);//can be used where to trigger the path

onDraw method should contain:

     canvas.drawPath(mPath, mPaint);

Declare the mPath and mPaint as global.