A popular psychologist has discovered that the most relaxing thing in the world is watching bubbles rise up from the bottom of a glass. Previously, people thought that it was the liquid contents of the glass that were relaxing, but now science has told us that it is the bubbles that give us that soothing feeling.
Well we've had a busy day writing Android apps, and now it's time to unwind by watching some nice relaxing bubbles. But first we have to write another Android application to see them! Well, writing Android apps is kind of relaxing.
In this Activity, we will subclass
SurfaceView to get us a direct surface onto the screen, and then create a game loop thread that will draw animated bubbles. ...