I am playing with the FingerPaint application that comes bundled with the API demos package. I was wondering if I could add an "Undo" feature to it, which would allow the user to remove/undo his latest stroke drawing from the canvas. I am not sure of how to achieve this though.
I was looking at the android.graphics.Canvas class and therein I found a few methods that caught my interest.
Canvas.restore() and Canvas.save(). But they dont work the way, I believed they should.
If anyone here has done anything similar and can help me, I'd be obliged.