Beginning Android 3 Contents
Part I: Core Concept …………………………………………………………. 1
■ Chapter 1: The Big Picture ……………………………………………………………………. 3
■ Chapter 2: How to Get Started ………………………………………………………………. 7
■ Chapter 3: Your First Android Project ………………………………………………….. 23
■ Chapter 4: Examining Your First Project ………………………………………………. 31
■ Chapter 5: A Bit About Eclipse …………………………………………………………….. 37
■ Chapter 6: Enhancing Your First Project ………………………………………………. 47
Part II: Activities ……………………………………………… 49
■ Chapter 7: Rewriting Your First Project ……………………………………………….. 51
■ Chapter 8: Using XML-Based Layouts ………………………………………………….. 55
■ Chapter 9: Employing Basic Widgets ……………………………………………………. 61
■ Chapter 10: Working with Containers ………………………………………………….. 73
■ Chapter 11: The Input Method Framework ……………………………………………. 93
■ Chapter 12: Using Selection Widgets …………………………………………………. 103
■ Chapter 13: Getting Fancy with Lists …………………………………………………. 119
■ Chapter 14: Still More Widgets and Containers ……………………………………. 135
■ Chapter 15: Embedding the WebKit Browser ………………………………………. 159
■ Chapter 16: Applying Menus …………………………………………………………….. 167
■ Chapter 17: Showing Pop-Up Messages ……………………………………………… 179
■ Chapter 18: Handling Activity Lifecycle Events ……………………………………. 183
■ Chapter 19: Handling Rotation ………………………………………………………….. 187
■ Chapter 20: Dealing with Threads ……………………………………………………… 203
■ Chapter 21: Creating Intent Filters …………………………………………………….. 221
■ Chapter 22: Launching Activities and Subactivities …………………………….. 227
■ Chapter 23: Working with Resources …………………………………………………. 235
■ Chapter 24: Defining and Using Styles ……………………………………………….. 251
■ Chapter 25: Handling Multiple Screen Sizes ……………………………………….. 257
Part III: Honeycomb and Tablets …………………………………….. 279
■ Chapter 26: introducing the Honeycomb UI ………………………………………….. 281
■ Chapter 27: Using the Action Bar ………………………………………………………. 289
■ Chapter 28: Fragments …………………………………………………………………….. 297
■ Chapter 29: Handling Platform Changes …………………………………………….. 313
■ Chapter 30: Accessing Files ……………………………………………………………… 323
Part IV: Data Stores, Network Services, and APIs ………………. 337
■ Chapter 31: Using Preferences ………………………………………………………….. 339
■ Chapter 32: Managing and Accessing Local Databases ………………………… 357
■ Chapter 33: Leveraging Java Libraries ………………………………………………. 369
■ Chapter 34: Communicating via the Internet ………………………………………. 377
Part V: Services ………………………………………………………………. 393
■ Chapter 35: Services: The Theory ………………………………………………………. 395
■ Chapter 36: Basic Service Patterns ……………………………………………………. 403
■ Chapter 37: Alerting Users via Notifications ……………………………………….. 423
Part VI: Other Android Capabilities ………………………………….. 435
■ Chapter 38: Requesting and Requiring Permissions …………………………….. 437
■ Chapter 39: Accessing Location-Based Services …………………………………. 443
■ Chapter 40: Mapping with MapView and MapActivity ………………………….. 449
■ Chapter 41: Handling Telephone Calls ………………………………………………… 463
■ Chapter 42: Fonts ……………………………………………………………………………. 467
■ Chapter 43: More Development Tools ………………………………………………… 473
Part VII: Alternative Application Environments …………………. 489
■ Chapter 44: The Role of Alternative Environments ……………………………….. 491
■ Chapter 45: HTML5 ………………………………………………………………………….. 495
■ Chapter 46: PhoneGap ……………………………………………………………………… 507
■ Chapter 47: Other Alternative Environments ……………………………………….. 523
Part VIII: The Ever-Evolving Android …………………………………. 529
■ Chapter 48: Dealing with Devices ………………………………………………………. 531
■ Chapter 49: Where Do We Go From Here? …………………………………………… 537