In This Chapter
If you read only one chapter in this book, this chapter is the one we suggest. We use the Tic-Tac-Toe sample application to illustrate the various components of the Android SDK and the Android Application Model. If you read this chapter in its entirety, you should have a working knowledge of all Android SDK components and capabilities. The main concept, however, is the Android Application Model: It gives you a sense of how other built-in components (such as activities, views, menus, preferences, intents, and intent filters) and capabilities (such as files and SQLite) work together within this model.
One quick note before we get into this chapter. To fully understand what is presented here, you must be familiar with the system architecture of an Android device and an Android application and the application model that Android applications must conform to, and you must know how to install the development tools, create a project for the application, recognize the various code and configuration files in the project, import code into the project, and, finally, build and run an application. We have covered these elements in Chapters 1 and 2, so either read them before reading this chapter, or refer back to them as needed.
Also, the code examples in this chapter are from two Eclipse projects, namely, ...