Beginning Android 4

By Grant Allen

Beginning Android 4 Cover Image

Beginning Android 4 starts you on the path to developing innovative and salable applications for Android 4 mobile devices, using simple examples that are ready to run with your copy of the Software Development Kit (SDK) 4.0.

Full Description

  • ISBN13: 978-1-4302-3984-0
  • 604 Pages
  • User Level: Beginner to Intermediate
  • Publication Date: January 10, 2012
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $39.99
  • eBook Price: $27.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

Beginning Android 4 is an update to Beginning Android 3, originally written by Mark Murphy. It is your first step on the path to creating marketable apps for the burgeoning Android Market, Amazon's Android Appstore, and more. Google’s Android operating-system has taken the industry by storm, going from its humble beginnings as a smartphone operating system to its current status as a platform for apps that run across a gamut of devices from phones to tablets to netbooks to televisions, and the list is sure to grow.

Smart developers are not sitting idly by in the stands, but are jumping into the game of creating innovative and salable applications for this fast-growing, mobile- and consumer-device platform. If you’re not in the game yet, now is your chance!

Beginning Android 4 is fresh with details on the latest iteration of the Android platform. Begin at the beginning by installing the tools and compiling a skeleton app. Move through creating layouts, employing widgets, taking user input, and giving back results. Soon you’ll be creating innovative applications involving multi-touch, multi-tasking, location-based feature sets using GPS.

You’ll be drawing data live from the Internet using web services and delighting your customers with life-enhancing apps. Not since the PC era first began has there been this much opportunity for the common developer. What are you waiting for? Grab your copy of Beginning Android 4 and get started!

What you’ll learn

  • Develop Java-based mobile applications and games for a wide range of phones and devices.
  • Create user interfaces using WebKit and the Android widget framework.
  • Build location- and map-based applications drawing on live feeds over the Internet.
  • Incorporate activities, services, content providers, and broadcast receivers into your applications.
  • Support multiple Android versions, multiple screen sizes, and other device-specific characteristics.
  • Build and experience the array of new WebM video and other multimedia APIs for Android and more.

Who this book is for

Beginning Android 4 is aimed at programmers new to Android application development who desire to create marketable applications for the burgeoning market of smartphone, tablet, and other Android device users.

Table of Contents

Table of Contents

  1. The Big Picture
  2. How to Get Started
  3. Your First Android Project
  4. Examining Your First Project
  5. A Bit About Eclipse
  6. Enhancing Your First Project
  7. Rewriting Your First Project
  8. Using XML-Based Layouts
  9. Employing Basic Widgets
  10. Working with Containers
  11. The Input Method Framework
  12. Using Selection Widgets
  13. Getting Fancy with Lists
  14. Still More Widgets and Containers
  15. Embedding the WebKit Browser
  16. Applying Menus
  17. Showing Pop-up Messages
  18. Handling Activity Lifecycle Events
  19. Handling Rotation
  20. Dealing with Threads
  21. Creating Intent Filters
  22. Launching Activities and Sub-Activities
  23. Working with Resources
  24. Defining and Using Styles
  25. Handling Multiple Screen Sizes
  26. Introducing the Honeycomb UI
  27. Using the Action Bar
  28. Fragments
  29. Handling Platform Changes
  30. Accessing Files
  31. Using Preferences
  32. Managing and Accessing Local Databases
  33. Leveraging Java Libraries
  34. Communicating via the Internet
  35. Services: The Theory
  36. Basic Service Patterns
  37. Alerting Users via Notifications
  38. Requesting and Requiring Permissions
  39. Accessing Location-Based Services
  40. Mapping with MapView and MapActivity
  41. Handling Telephone Calls
  42. Fonts
  43. More Development Tools
  44. The Role of Alternative Environments
  45. HTML5
  46. PhoneGap
  47. Other Alternative Environments
  48. Dealing with Devices
  49. Where Do We Go from Here?
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page 69:

if (isChecked) {sw.setTextOn("This switch is: on");} else {       sw.setTextOff("This switch is: off");     }

setTextOn and setTextOff don't change the text of the switch as shown in the graphic. Should be setText.

On page 390:

WeatherDemo app does not work. Problem has to do with retrieving the lat/lon via the LocationManager, since when the lat/lon are hardcoded it works.