O'Reilly logo

Beginning Android Tablet Games Programming by Jeremy Kerfs

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

Polishing the Application

Although your game is playable as is, it could use some polishing. A welcome screen would be a nice addition so players can learn about the game before jumping into it. You have a lot of options when it comes to adding this feature, but making a rudimentary entrance screen is easy, and you can fine-tune it for each game. In this section, you add a screen and then a button to start up the game.

Adding an Splash Screen

Because GameView.java takes care of the actual game and its appearance, your startup page is handled by MainActivity.java. Instead of setting the screen to show GameView, you present a quick layout and then give the user the ability to enter the game. This makes your work more professional and easier for ...

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