O'Reilly logo

Sams Teach Yourself Android™ Application Development in 24 Hours, Second Edition by Shane Conder, Lauren Darcey

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

Hour 12. Adding Application Logic

What You’ll Learn in This Hour:

Designing the game screen

Working with ViewSwitcher Controls

Data structures and parsing XML

Wiring up the game logic and keeping game state

In this hour, you wire up the screen at the heart of the Been There, Done That! application—the game play screen. This screen prompts the user to answer a series of questions and stores the resulting score information. Because the screen must display a dynamic series of images and text strings, you leverage several new View controls, including ImageSwitcher and TextSwitcher controls, to help transition between questions in the game. You also need to update the QuizGameActivity class with game logic and game state information, including ...

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