O'Reilly logo

Android™ How to Program, Third Edition by Harvey M. Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6. Cannon Game App

Objectives

In this chapter you’ll:

Image Create a simple game app that’s easy to code and fun to play.

Image Create a custom SurfaceView subclass for displaying the game’s graphics from a separate thread of execution.

Image Draw graphics using Paints and a Canvas.

Image Override View’s onTouchEvent method to fire a cannonball when the user touches the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required