O'Reilly logo

Sams Teach Yourself Google TV™ App Development in 24 Hours by Carmen Delessio

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 11. Understanding Activities and Fragments in a Complex App

What You’ll Learn in This Hour:

• How the Activity life cycle works

• What are Fragments?

• How to swap Fragments in an Activity

• How to use an ActionBar with Fragments

In this hour, you learn the details of the Activity life cycle and the relationship between Fragments and Activities. We explain Fragments in detail and show how to incorporate them into Google TV apps. Fragments make it easier to create sophisticated user interfaces. We’ll use two Fragments in an Activity to understand the fundamentals of how they work. Then we’ll create an app with more complex navigation using Fragments and an ActionBar.

Understanding the Activity Life Cycle

We’ve been using Activities in our ...

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