Android continues to be one of the leading mobile OS and development platforms driving today's mobile innovations and the apps ecosystem. Android appears complex, but offers a variety of organized development kits to those coming into Android with differing programming language skill sets.

Android Recipes: A Problem-Solution Approach, Second Edition offers more than 100 down-to-earth code recipes, and guides you step-by-step through a wide range of useful topics using complete and real-world working code examples. It's updated to include the Jelly Bean Android SDK as well as earlier releases.

Instead of abstract descriptions of complex concepts, in Android Recipes, you'll find live code examples. When you start a new project, you can consider copying and pasting the code and configuration files from this book, then modifying them for your own customization needs.

Crammed with insightful instruction and helpful examples, this second edition of Android Recipes is your guide to writing apps for one of today’s hottest mobile platforms. It offers pragmatic advice that will help you get the job done quickly and well. This can save you a great deal of work over creating a project from scratch!

What you’ll learn

  • Use external libraries to save time and effort
  • Boost app performance by using the Android NDK and Renderscript
  • Design apps for performance, responsiveness, and seamlessness
  • Send data between devices and other external hardware
  • Persist application data and share it between applications
  • Capture and play back various device media items
  • Communicate with web services
  • Get the most out of your user interface
  • Develop a unit conversion app in the context of the command-line/Android SDK and Eclipse/Android SDK environments

Who this book is for

This book is a handy reference for all Android app developers. Newcomers may also find this of interest, too.

Dave Smith

Dave Smith is a professional engineer developing hardware and software for mobile and embedded platforms. Dave's engineering efforts are currently focused full-time on Android and iOS development. Since 2009, Dave has worked on developing at all levels of the Android platform, from writing user applications using the software development kit, to building and customizing the Android source code. Dave regularly communicates via his development blog (http://blog.wiresareobsolete.com) and Twitter stream @devunwired.

Jeff Friesen

Jeff Friesen is a freelance tutor and software developer with an emphasis on Java (and now Android). In addition to writing Android Recipes, Jeff has written numerous articles on Java and other technologies for JavaWorld (JavaWorld.com), informIT (InformIT.com), Java.net, and DevSource (DevSource.com). Jeff can be contacted via his website at TutorTutor.ca.

  1. Getting Started with Android

  2. User Interface Recipes

  3. Communications and Networking

  4. Interacting with Device Hardware and Media

  5. Persisting Data

  6. Interacting with the System

  7. Working with Libraries

  8. Working with Android NDK and Renderscript

  9. Appendix A: Scripting Layer for Android

  10. Appendix B: Android Tools Overview

  11. Appendix C: App Design Guidelines

  12. Appendix D: Univerter Architecture