Beginning Android

  • 4h 15m
  • Mark Murphy
  • Apress
  • 2009

Learn how to develop applications for Android mobile devices using simple examples, ready to run with your copy of the SDK. Author and Android columnist, writer, developer, and community advocate Mark L Murphy shows you what you need to know to get started on programming Android applications–everything from crafting GUIs to using GPS, accessing web services, and more!

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. Some Android books race through the material, trying to cover as much ground as possible in as few pages as possible. Experienced writer and community advocate Mark Murphy shows you how to develop Android applications simply and with care.

The book includes dozens of sample projects, ready to run with your copy of the SDK–not just one huge project where you have difficulty finding the specific examples of the technique you are looking for. You can even get these sample programs online at

What you'll learn

  • Discover what Android is and how to use Android to build Java-based mobile applications for Google Phones G1 and more phones as they hit the market
  • Work with the new Android 1.x SDK
  • Create user interfaces using both the Android Widget framework and the built-in WebKit-powered web browser components
  • Use scripting with BeanShell
  • Work with menu inflation, fonts, SDK tools, rotation events, and more
  • Work with TabActivity, MyLocationOverlay, DDMS, and more
  • Utilize the distinctive capabilities of the Android engine including maps, Internet access, integrated search, media playback, and more
  • Use and create similar sample Android applications for services, content providers, mapping, and location-based services/events

About the Author

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.

In this Book

  • The Big Picture
  • Project Structure
  • Inside the Manifest
  • Creating a Skeleton Application
  • Using XML-Based Layouts
  • Employing Basic Widgets
  • Working with Containers
  • Using Selection Widgets
  • Getting Fancy with Lists
  • Employing Fancy Widgets and Containers
  • Applying Menus
  • Fonts
  • Embedding the Webkit Browser
  • Showing Pop-Up Messages
  • Dealing with Threads
  • Handling Activity Lifecycle Events
  • Using Preferences
  • Accessing Files
  • Working with Resources
  • Managing and Accessing Local Databases
  • Leveraging Java Libraries
  • Communicating via the Internet
  • Creating Intent Filters
  • Launching Activities and Sub-Activities
  • Finding Available Actions via Introspection
  • Handling Rotation
  • Using a Content Provider
  • Building a Content Provider
  • Requesting and Requiring Permissions
  • Creating a Service
  • Invoking a Service
  • Alerting Users via Notifications
  • Accessing Location-Based Services
  • Mapping with MapView and MapActivity
  • Handling Telephone Calls
  • Searching with SearchManager
  • Development Tools
  • Where Do We Go from Here?


Rating 4.4 of 5 users Rating 4.4 of 5 users (5)
Rating 4.5 of 2 users Rating 4.5 of 2 users (2)
Rating 5.0 of 1 users Rating 5.0 of 1 users (1)