I am new to android and I am trying to build a simple application which moves a small dot on the screen which behaves like a tennis ball. To move the dot, I have got a method which updates its x and y coordinates (let us say updateXY() ). To make the ball animate forever until the user will exit application, I have to call updateXY() method based on an interval. Any ideas on how to implements this?