6.13.1 package and import Statements6.13.2 Instance Variables and Constants6.13.3 ConstructorRegistering the SurfaceHolder.Callback ListenerConfiguring the SoundPool and Loading the SoundsCreating the Paint Objects Used to Draw the Background and Timer Text6.13.4 Overriding View Method onSizeChanged6.13.5 Methods getScreenWidth, getScreenHeight, and playSound6.13.6 Method newGame6.13.7 Method updatePositionsElapsed Time Since the Last Animation FrameUpdating the Cannonball, Blocker and Target PositionsUpdating the Time Left and Determining Whether Time Ran Out6.13.8 Method alignAndFireCannonball6.13.9 Method showGameOverDialog6.13.10 Method drawGameElementsClearing the Canvas with Method drawRectDisplaying the Time Remaining with Canvas Method drawTextDrawing the Cannon, Cannonball, Blocker and Targets with the draw Method6.13.11 Method testForCollisions6.13.12 Methods stopGame and releaseResources6.13.13 Implementing the SurfaceHolder.Callback Methods6.13.14 Overriding View Method onTouchEvent6.13.15 CannonThread: Using a Thread to Create a Game Loop6.13.16 Methods hideSystemBars and showSystemBars