onPaint at program start
The Smiling Mickey
I've created an application which draws a line when a certain Key is pressed. This works fine but the annoying problem is the onPaint which is called at the program start. This means there is always a line in the canvas.
How can I make sure that the onPaint is only called when a Key is pressed?