been benefiting from smartphones for years, and now more and more
companies are getting into the game. Some developers are learning mobile
development brand new, while others are coming from backgrounds in web
development or PC programming. No matter, making mobile applications
that work well requires learning some new concepts and skills. With Android
in particular, fragments are one of those topics that are critical to an Android
application, but are not that easy to master. Once you understand the inner
details of how fragments work, and the ways in which they can be used, you
will find it much easier to design and build Android applications.
Fragments are conceptual containers of user interface and logic that can be
easily combined as building blocks into your mobile application. Android has
not abandoned the Activity class, but activities are now often composed
from fragments. This makes it much easier to build applications to support
different device types, sizes and orientations.
This book, Android Fragments, is our sixth book on Android. In the first
four books, published under the Pro Android name, we covered many of
the Android APIs, from basic Views to broadcast receivers, touchscreens,
services and animations. In Expert Android we tackled more advanced
Android APIs as well as the advanced debugging capabilities of Android.