I'm doing a kidsbook app in this I have a paint functionality here using bitmap am getting erase function using this code
try {
myview = new MyView(this);
mBitmap.eraseColor(android.graphics.Color.WHITE);
Canvas Canvas = new Canvas(mBitmap);
action = true;
myview.onDraw(Canvas) \
} catch(IllegalStateException ie) {
ie.printStackTrace();
}
but am not getting how to undo paint using bitmap.