Chapter 1. Introducing Android
Listing 1.1. Main.java Android Activity class as generated by the ADT plugin
Listing 1.2. Main.xml layout resource used to declare UI elements for the Main Activity
Listing 1.3. The res/values/strings.xml resource file
Listing 1.4. The autogenerated R.java class showing internal classes and constant names
Listing 1.5. The AndroidManifest.xml file used to define configuration
Chapter 2. Android application fundamentals
Listing 2.1. The AndroidMainfest.xml manifest file of the DealDroid application
Listing 2.2. The res/values/strings.xml resources file showing values for named strings
Listing 2.3. The res/values/plurals.xml resource file using the XLIFF format
Listing 2.4. The res/layout/deallist.xml layout resource file, showing views and widgets
Listing 2.5. Start of the DealList.java Activity class, from declaration through onCreate
Listing 2.6. Resetting the ListView adapter in the DealList.java Activity class
Listing 2.7. Handling a click event for an item in the ListView of DealList.java Activity
Listing 2.8. Setting up the menu for the DealList.java Activity class
Listing 2.9. The onPause method in the DealList.java Activity class
Listing 2.10. The DealsAdapter.java custom Adapter for supplying views to the DealList
Listing 2.11. The first part of the DealDetails.java Activity class
Listing 2.12. The sharing actions of the DealDetails Activity, handled through Intents