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.