Using resources

We have mentioned Android resources in several areas up to now, and they were initially introduced in chapter 1. Here we will revisit resources with more depth in order to expand on this important topic and to begin completing the third and final Activity in RestaurantFinder—the ReviewDetail screen.

When you begin working with Android you will quickly notice many references to a class named R. This class was introduced in chapter 1, and we have used it in our previous Activity examples in this chapter. This is the Android resources reference class. Resources are non-code items that are included with your project automatically by the platform.

To begin looking at resources we will first discuss how they are classified into types in Android, and then we will work on examples of each type.

0 0

Post a comment