Skip to Main Content
Sams Teach Yourself Android™ Application Development in 24 Hours, Second Edition
book

Sams Teach Yourself Android™ Application Development in 24 Hours, Second Edition

by Lauren Darcey, Shane Conder
July 2011
Beginner to intermediate content levelBeginner to intermediate
512 pages
12h 4m
English
Sams
Content preview from Sams Teach Yourself Android™ Application Development in 24 Hours, Second Edition

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Sams Teach Yourself Android™ Application Development in 24 Hours

Sams Teach Yourself Android™ Application Development in 24 Hours

Lauren Darcey, Shane Conder

Publisher Resources

ISBN: 9780132786904Purchase book