Android 3.0 Application Development Cookbook

Over 70 working recipes covering every aspect of Android development
Preview in Mapt
Code Files

Android 3.0 Application Development Cookbook

Kyle Merrifield Mew

Over 70 working recipes covering every aspect of Android development
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99 p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Android 3.0 Application Development Cookbook Book Cover
Android 3.0 Application Development Cookbook
$ 26.99
$ 18.90
DevOps in Finance Book Cover
DevOps in Finance
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $27.98
Add to Cart

Book Details

ISBN 139781849512947
Paperback272 pages

Book Description

Android is a mobile operating system that runs on a staggering number of smartphones and tablets. Android offers developers the ability to build extremely rich and innovative applications written using the Java programming language. Among the number of books that have been published on the topic, what’s missing is a thoroughly practical, hands-on book that takes you straight to getting your job done without boring you with too much theory.

Android 3.0 Application Development Cookbook will take you straight to the information you need to get your applications up and running. This book is written to provide you with the shortest possible route between an idea and a working application.

Work through the book from start to finish to become an Android expert, or use it as a reference book by applying recipes directly to your project.

This book covers every aspect of mobile app development, starting with major application components and screen layout and design, before moving on to how to manage sensors such as internal gyroscopes and near field communications. Towards the end, it delves into smartphone multimedia capabilities as well as graphics and animation, web access, and GPS.

Whether you are writing your first app or your hundredth, this is a book that you will come back to time and time again, with its many tips and tricks on the rich features of Android 3.

Table of Contents

Chapter 1: Activities
Introduction
Declaring an activity
Starting a new activity with an intent object
Switching between activities
Returning a result from an activity
Storing an activity's state
Storing persistent activity data
Managing the activity lifecycle
Chapter 2: Layouts
Introduction
Declaring a layout
Applying a relative layout
Applying a table layout
Using ListViews and ListAdapters
Applying gravity and weight
Controlling layout during runtime
Optimizing for tablets and multiple screens
Dividing the screen into fragments
Running 3.0 and higher applications on older platforms
Chapter 3: Widgets
Introduction
Inserting a widget into a layout
Adding images to widgets
Creating a widget at runtime
Applying a style
Turning a style into a theme
Using a platform style or theme
Creating a custom component
Chapter 4: Menus
Introduction
Creating and inflating an options menu
Designing Android compliant menu icons
Building a context sensitive menu
Handling menu selections
Building menu groups of checkable items
Applying shortcut keys and submenus
Chapter 5: Data and Security
Introduction
Using internal storage for private data
Storing public data on external storage
Creating a SQLite database
Sharing multimedia files across applications with Content Providers
Defining and enforcing permissions
Providing backup functionality
Chapter 6: Detecting User Activity
Introduction
Reading a device's orientation
Measuring motion with the accelerometer
Listing available sensors
Recognizing a touch event
Detecting multi-touch elements
Recognizing gestures
Handling multi-touch gestures
Controlling on screen keyboards
Chapter 7: Notifying the User
Introduction
Displaying an alert dialog
Displaying a progress dialog
Customizing a dialog
Making a Toast
Notifying the user with the status bar
Using the Notifcation.Builder class
Chapter 8: Graphics and Animation
Introduction
Adding graphics to the ImageView class
Rotating an image with a matrix
Using ShapeDrawable and Paint
Drawing with a Canvas
Using tween animations
Animating with Honeycomb APIs
Creating stop frame animations
Working with OpenGL
Chapter 9: Multimedia
Introduction
Playing an audio file from within an application
Playing back video from external memory
Playing multiple sounds with a SoundPool
Recording audio
Recording video
Capturing photos with the camera
Chapter 10: Telephony, Networks, and the Web
Introduction
Initiating a phone call
Listening for phone events
Sending SMS messages
Monitoring SMS messages
Connecting to WiFi
Connecting Bluetooth devices
Including web content
Chapter 11: GPS, Locations, and Maps
Introduction
Detecting a device's location
Listening for location changes
Setting up Google Maps
Zooming in on a MapView
Setting a map's location with a GeoPoint
Marking a location on a map with an overlay

What You Will Learn

  • Design custom layouts and widgets
  • Connect your application to the Web
  • Animate your applications
  • Create touch and motion sensitive apps
  • Respond to your user's every move with sensor control
  • Use GPS to create location sensitive apps
  • Create and play back sound and video
  • Augment reality through camera controls
  • Access WiFi networks and Bluetooth
  • Incorporate Google Maps in your applications

 

Authors

Table of Contents

Chapter 1: Activities
Introduction
Declaring an activity
Starting a new activity with an intent object
Switching between activities
Returning a result from an activity
Storing an activity's state
Storing persistent activity data
Managing the activity lifecycle
Chapter 2: Layouts
Introduction
Declaring a layout
Applying a relative layout
Applying a table layout
Using ListViews and ListAdapters
Applying gravity and weight
Controlling layout during runtime
Optimizing for tablets and multiple screens
Dividing the screen into fragments
Running 3.0 and higher applications on older platforms
Chapter 3: Widgets
Introduction
Inserting a widget into a layout
Adding images to widgets
Creating a widget at runtime
Applying a style
Turning a style into a theme
Using a platform style or theme
Creating a custom component
Chapter 4: Menus
Introduction
Creating and inflating an options menu
Designing Android compliant menu icons
Building a context sensitive menu
Handling menu selections
Building menu groups of checkable items
Applying shortcut keys and submenus
Chapter 5: Data and Security
Introduction
Using internal storage for private data
Storing public data on external storage
Creating a SQLite database
Sharing multimedia files across applications with Content Providers
Defining and enforcing permissions
Providing backup functionality
Chapter 6: Detecting User Activity
Introduction
Reading a device's orientation
Measuring motion with the accelerometer
Listing available sensors
Recognizing a touch event
Detecting multi-touch elements
Recognizing gestures
Handling multi-touch gestures
Controlling on screen keyboards
Chapter 7: Notifying the User
Introduction
Displaying an alert dialog
Displaying a progress dialog
Customizing a dialog
Making a Toast
Notifying the user with the status bar
Using the Notifcation.Builder class
Chapter 8: Graphics and Animation
Introduction
Adding graphics to the ImageView class
Rotating an image with a matrix
Using ShapeDrawable and Paint
Drawing with a Canvas
Using tween animations
Animating with Honeycomb APIs
Creating stop frame animations
Working with OpenGL
Chapter 9: Multimedia
Introduction
Playing an audio file from within an application
Playing back video from external memory
Playing multiple sounds with a SoundPool
Recording audio
Recording video
Capturing photos with the camera
Chapter 10: Telephony, Networks, and the Web
Introduction
Initiating a phone call
Listening for phone events
Sending SMS messages
Monitoring SMS messages
Connecting to WiFi
Connecting Bluetooth devices
Including web content
Chapter 11: GPS, Locations, and Maps
Introduction
Detecting a device's location
Listening for location changes
Setting up Google Maps
Zooming in on a MapView
Setting a map's location with a GeoPoint
Marking a location on a map with an overlay

Book Details

ISBN 139781849512947
Paperback272 pages
Read More

Read More Reviews

Recommended for You

Android User Interface Development: Beginner's Guide Book Cover
Android User Interface Development: Beginner's Guide
$ 26.99
$ 18.90
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
Mastering Unity 2D Game Development Book Cover
Mastering Unity 2D Game Development
$ 32.99
$ 6.60
Oracle Weblogic Server 11gR1 PS2: Administration Essentials Book Cover
Oracle Weblogic Server 11gR1 PS2: Administration Essentials
$ 32.99
$ 23.10
Raspberry Pi Home Automation with Arduino Book Cover
Raspberry Pi Home Automation with Arduino
$ 17.99
$ 3.60
Unity 3 Game Development HOTSHOT Book Cover
Unity 3 Game Development HOTSHOT
$ 29.99
$ 21.00