O'Reilly logo

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android by Michael Eierman, Jakob Iversen

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

Fragments

Fragments were discussed in Chapter 4, “Android Navigation and Interface Design.” The FragmentActivity is a subclass of the Activity class. An Activity that needs to implement a map must extend the FragmentActivity class rather than the Activity class. This is required because maps are encapsulated in a MapFragment. This allows a map to be a part of a layout rather than the only thing in a layout.

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