Page 148 (Under figure 7.2)

"You cannot swap out an activity’s entire view (without destroying the activity) "

By calling setContentView with another layout file, you can swap out an Activities View without destroying the activity.


You are correct. The way we describe this relationship is not technically correct. Here’s a better explanation, starting right after “what the user or the device requires”, replacing the last paragraph:

Activities were not build to provide this flexibility. An activity’s views may change at runtime, but the code to control those views must all live inside the activity. As a result, activities were tightly coupled to a particular screen used by the user.