Beginning Android 2

Front Cover
Apress, Mar 19, 2010 - Computers - 416 pages
2 Reviews

The Android development platform, created by Google and the Open Handset Alliance, is a platform in its truest sense, encompassing hundreds of classes beyond the traditional Java classes and open source components that ship with the SDK.

With Beginning Android 2, you値l learn how to develop applications for Android 2.x mobile devices, using simple examples that are ready to run with your copy of the software development kit. Author, Android columnist, writer, developer, and community advocate Mark L. Murphy will show you what you need to know to get started programming Android applications, including how to craft graphical user interfaces, use GPS, and access web services.

What you値l learn
  • Discover Android and how to use it to build Java-based mobile applications for a wide range of phones and other devices.
  • Create user interfaces using both the Android widget framework and the built-in WebKit-powered Web browser components.
  • Utilize the distinctive capabilities of the Android engine, including location tracking, maps, and Internet access.
  • Use and create Android applications incorporating activities, services, content providers, and broadcast receivers.
  • Support Android 1.5, 1.6, and 2.0 devices, including dealing with multiple Android OS versions, multiple screen sizes, and other device-specific characteristics.
Who this book is for

This book is aimed at people new to mobile development, but with some knowledge of Java.

Table of Contents
  1. The Big Picture
  2. Projects & Targets
  3. Creating a Skeleton Application
  4. Using XML-Based Layouts
  5. Employing Basic Widgets
  6. Working with Containers
  7. Using Selection Widgets
  8. Getting Fancy With Lists
  9. Employing Fancy Widgets and Containers
  10. The Input Method Framework
  11. Applying Menus
  12. Fonts
  13. Embedding the WebKit Browser
  14. Showing Pop-Up Messages
  15. Dealing with Threads
  16. Handling Activity Lifecycle Events
  17. Creating Intent Filters
  18. Launching Activities and Sub-Activities
  19. Handling Rotation
  20. Working with Resources
  21. Using Preferences
  22. Managing and Accessing Local Databases
  23. Accessing Files
  24. Leveraging Java Libraries
  25. Communicating via the Internet
  26. Using a Content Provider
  27. Building a Content Provider
  28. Requesting and Requiring Permissions
  29. Creating a Service
  30. Invoking a Service
  31. Alerting Users Via Notifications
  32. Accessing Location-Based Services
  33. Mapping with MapView and MapActivity
  34. Handling Telephone Calls
  35. Development Tools
  36. Handling Multiple Screen Sizes
  37. Dealing with Devices
  38. Handling Platform Changes
  39. Where Do We Go From Here?


What people are saying - Write a review

User Review - Flag as inappropriate


User Review - Flag as inappropriate

This book is very odd. Even though it was published in 2010 it targets android 1.6, and while it gives plenty of generic examples, most of them have several errors. A reader without previous mobile programming experience or a decent amount of java experience could very easily find him or herself frustrated and confused. 


Chapter 2 Projects and Targets
Chapter 3 Creating a Skeleton Application
Chapter 4 Using XMLBased Layouts
Chapter 5 Employing Basic Widgets
Chapter 6 Working with Containers
Chapter 7 Using Selection Widgets
Chapter 8 Getting Fancy with Lists
Chapter 9 Employing Fancy Widgets and Containers
Chapter 22 Managing and Accessing Local Databases
Chapter 23 Accessing Files
Chapter 24 Leveraging Java Libraries
Chapter 25 Communicating via the Internet
Chapter 26 Using a Content Provider
Chapter 27 Building a Content Provider
Chapter 28 Requesting and Requiring Permissions
Chapter 29 Creating a Service

Chapter 10 The Input Method Framework
Chapter 11 Applying Menus
Chapter 12 Fonts
Chapter 13 Embedding the WebKit Browser
Chapter 14 Showing PopUp Messages
Chapter 15 Dealing with Threads
Chapter 16 Handling Activity Life Cycle Events
Chapter 17 Creating Intent Filters
Chapter 18 Launching Activities and Subactivities
Chapter 19 Handling Rotation
Chapter 20 Working with Resources
Chapter 21 Using Preferences
Chapter 30 Invoking a Service
Chapter 31 Alerting Users via Notifications
Chapter 32 Accessing LocationBased Services
Chapter 33 Mapping with MapViewand Map Activity
Chapter 34 Handling Telephone Calls
Chapter 35 Development Tools
Chapter 36 Handling Multiple Screen Sizes
Chapter 37 Dealing with Devices
Chapter 38 Handling Platform Changes
Chapter 39 Where Do We Go from Here?

Common terms and phrases

About the author (2010)

Mark Murphy is the founder of CommonsWare and the author of The Busy Coder's Guide to Android Development. A three-time entrepreneur, his experience ranges from consulting on open source and collaborative development for Fortune 500 companies to application development on just about anything smaller than a mainframe. He has been a software developer for over 25 years, working on platforms ranging from the TRS-80 to the latest crop of mobile devices. A polished speaker, Mark has delivered conference presentations and training sessions on a wide array of topics internationally. Mark writes the "Building Droids" column for AndroidGuys and the "Android Angle" column for NetworkWorld. Outside of CommonsWare, Mark has an avid interest in how the Internet will play a role in citizen involvement with politics and government. He is a contributor to the Rebooting America essay collection, and his personal blog features many posts discussing "cooperative democracy."

Bibliographic information