文件名称:APress.Beginning.Android.2009.pdf
文件大小:15.36MB
文件格式:PDF
更新时间:2012-07-27 04:02:41
Beginning Android
PART 1 ■ ■ ■ Core Concepts ■CHAPTER 1 The Big Picture ............ . . 3 ■CHAPTER 2 Project Structure ............ 7 ■CHAPTER 3 Inside the Manifest ........... . . 9 PART 2 ■ ■ ■ Activities ■CHAPTER 4 Creating a Skeleton Application ........ . 15 ■CHAPTER 5 Using XML-Based Layouts ......... . . 21 ■CHAPTER 6 Employing Basic Widgets .........27 ■CHAPTER 7 Working with Containers .......... 37 ■CHAPTER 8 Using Selection Widgets .......... 55 ■CHAPTER 9 Getting Fancy with Lists .......... 71 ■CHAPTER 10 Employing Fancy Widgets and Containers ...... 93 ■CHAPTER 11 Applying Menus ...........113 ■CHAPTER 12 Fonts .............. . 125 ■CHAPTER 13 Embedding the WebKit Browser ........ 129 ■CHAPTER 14 Showing Pop-Up Messages ......... 137 ■CHAPTER 15 Dealing with Threads .......... . . 141 ■CHAPTER 16 Handling Activity Lifecycle Events ....... . . 147 PART 3 ■ ■ ■ Data Stores, Network Services, and APIs ■CHAPTER 17 Using Preferences ........... . 153 ■CHAPTER 18 Accessing Files ...........167 ■CHAPTER 19 Working with Resources .........175 ■CHAPTER 20 Managing and Accessing Local Databases ..... . . 193 ■CHAPTER 21 Leveraging Java Libraries ......... . . 201 ■CHAPTER 22 Communicating via the Internet ........ 207 PART 4 ■ ■ ■ Intents ■CHAPTER 23 Creating Intent Filters .......... . . 215 ■CHAPTER 24 Launching Activities and Sub-Activities ...... . 221 ■CHAPTER 25 Finding Available Actions via Introspection ..... . . 231 ■CHAPTER 26 Handling Rotation ........... . 237 PART 5 ■ ■ ■ Content Providers and Services ■CHAPTER 27 Using a Content Provider .........253 ■CHAPTER 28 Building a Content Provider ......... 259 ■CHAPTER 29 Requesting and Requiring Permissions ...... . 269 ■CHAPTER 30 Creating a Service ........... . 273 ■CHAPTER 31 Invoking a Service ........... . 279 ■CHAPTER 32 Alerting Users via Notifications ........ . PART 6 ■ ■ ■ Other Android Capabilities ■CHAPTER 33 Accessing Location-Based Services ....... 293 ■CHAPTER 34 Mapping with MapView and MapActivity ...... 299 ■CHAPTER 35 Handling Telephone Calls ......... . . 309 ■CHAPTER 36 Searching with SearchManager ........ 313 ■CHAPTER 37 Development Tools ........... 321 ■CHAPTER 38 Where Do We Go from Here? ........337 ■APPENDIX Introducing Android 1.5 .......... 339 ■INDEX .................347