Chapter 1. Introducing Android
Listing 1.1. A basic Activity in an Android application
Listing 1.2. A simple example of an Android Service
Listing 1.3. A sample BroadcastReceiver
Listing 1.4. AndroidManifest.xml
Listing 1.5. AndroidManifest.xml file for a basic Android application
Listing 1.6. AndroidManifest.xml for the Where Do You Live application
Listing 1.7. Implementing the Android Activity in AWhereDoYouLive.java
Listing 1.8. R.java containing the R class, which has UI element identifiers
Listing 1.9. Main.xml defining the UI elements for the sample application
Listing 1.10. strings.xml
Chapter 2. Android’s development environment
Listing 2.1. main.xml, which contains UI elements
Listing 2.2. ChapterTwo.java: implements the tip calculator logic
Chapter 3. User interfaces
Listing 3.1. First half of the ReviewCriteria Activity class
Listing 3.2. Second half of the ReviewCriteria Activity class
Listing 3.3. AdapterView classListActivity classFirst half of the ReviewList Activity class, showing a ListView
Listing 3.4. Second half of the ReviewList Activity class
Listing 3.5. ReviewAdapter and inner ReviewListView classes
Listing 3.6. First portion of ReviewDetail showing multiple uses of the R class
Listing 3.7. XML layout resource file for review_detail.xml
Listing 3.8. Externalized strings for the RestaurantFinder application, strings.xml
Listing 3.9. Values resource defining reusable styles, styles.xml
Listing 3.10. Arrays.xml used for defining cuisines and ratings