Apress Beginning Android 4 (2012).pdf

(28804 KB) Pobierz
850637129.008.png
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
850637129.009.png 850637129.010.png
Contents at a Glance
Contents .............................................................................................................. v
About the Authors............................................................................................ xvii
About the Technical Reviewer ........................................................................ xviii
Acknowledgments ............................................................................................ xix
Preface ..............................................................................................................xx
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 ............................................................................................... 51
Chapter 7: Rewriting Your First Project ........................................................ 53
Chapter 8: Using XML-Based Layouts ........................................................... 57
Chapter 9: Employing Basic Widgets............................................................. 63
Chapter 10: Working with Containers ........................................................... 79
Chapter 11: The Input Method Framework.................................................. 103
Chapter 12: Using Selection Widgets .......................................................... 113
Chapter 13: Getting Fancy with Lists .......................................................... 129
Chapter 14: Still More Widgets and Containers........................................... 145
Chapter 15: Embedding the WebKit Browser .............................................. 169
Chapter 16: Applying Menus ....................................................................... 177
Chapter 17: Showing Pop-Up Messages...................................................... 189
Chapter 18: Handling Activity Lifecycle Events ........................................... 193
Chapter 19: Handling Rotation .................................................................... 197
Chapter 20: Dealing with Threads ............................................................... 213
iii
850637129.011.png 850637129.001.png 850637129.002.png 850637129.003.png 850637129.004.png 850637129.005.png
CONTENTS AT A GLANCE
Chapter 21: Creating Intent Filters .............................................................. 231
Chapter 22: Launching Activities and Subactivities.................................... 237
Chapter 23: Working with Resources .......................................................... 245
Chapter 24: Defining and Using Styles ........................................................ 263
Part III: Honeycomb and Tablets..................................................................... 269
Chapter 25: Handling Multiple Screen Sizes ............................................... 271
Chapter 26: Focusing on Tablets and Larger UIs......................................... 293
Chapter 27: Using the Action Bar ................................................................ 299
Chapter 28: Fragments ................................................................................ 307
Chapter 29: Handling Platform Changes ..................................................... 323
Part IV: Data Stores, Network Services, and APIs .......................................... 333
Chapter 30: Accessing Files ........................................................................ 335
Chapter 31: Using Preferences .................................................................... 349
Chapter 32: Managing and Accessing Local Databases.............................. 367
Chapter 33: Leveraging Java Libraries ....................................................... 381
Chapter 34: Communicating via the Internet .............................................. 389
Part V: Services .............................................................................................. 407
Chapter 35: Services: The Theory................................................................ 409
Chapter 36: Basic Service Patterns............................................................. 417
Chapter 37: Alerting Users via Notifications ............................................... 437
Part VI: Other Android Capabilities ................................................................. 449
Chapter 38: Requesting and Requiring Permissions ................................... 451
Chapter 39: Accessing Location-Based Services ........................................ 457
Chapter 40: Mapping with MapView and MapActivity ................................ 463
Chapter 41: Handling Telephone Calls......................................................... 477
Chapter 42: Fonts ........................................................................................ 481
Chapter 43: More Development Tools ......................................................... 487
Part VII: Alternative Application Environments .............................................. 505
Chapter 44: The Role of Alternative Environments...................................... 507
Chapter 45: HTML5 ...................................................................................... 511
Chapter 46: PhoneGap ................................................................................. 525
Chapter 47: Other Alternative Environments............................................... 543
Part VIII: The Ever-Evolving Android .............................................................. 549
Chapter 48: Dealing with Devices................................................................ 551
Chapter 49: Where Do We Go from Here? .................................................... 557
Index ............................................................................................................... 561
iv
850637129.006.png
I
Part
Core Concept
850637129.007.png
Zgłoś jeśli naruszono regulamin