I am using the Canvas as Background and one button called Start Button.
When I Click the Start button will clear the screen and start the animation thread and replace the start button with a stop button.
When I Click the Stop button will stop the animation thread and replace the Stop button with a Start button. And the animation thread will draw a red circle object say Red Circles of same size at a random location within the width and height of the current screen.
How I can write code, can anyone can provide me code for this.

Replies
Know the answer? Post it — somebody with the same question will find it here.