O'Reilly logo

Learning Android™ Application Programming for the Kindle Fire™: A Hands-On Guide to Building Your First Android Application 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

12. Adding Application Logic

In this chapter, you wire up the screen at the heart of the Have You Read That? application: the game play screen. This screen prompts the user to answer a series of books and stores the resulting score information. Because the screen must display a dynamic series of images and text strings, you will leverage several new View controls, including ImageSwitcher and TextSwitcher controls, to help transition between books in the game. You will also need to update the QuizGameActivity class with game logic and game state information, including the retrieval of batches of new books, as a user progresses through the books.

Numerous intermediate Java topics are referenced in this chapter, including the use of inner classes, ...

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