Logo Icon Logo
A Crowd-sourced Cookbook on Writing Great Android® Apps
Twitter logo OReilly Book Cover Art
HomeF.A.Q.
Community
Writing Recipes
Login
Welcome to the Crowd-Sourced Android CookBook
Chapter View
0 Preface1 Getting Started2 Designing a successful Application
3 Testing4 Inter/Intra-Application Communication5 Content Providers
6 Graphics7 Graphical User Interface8 GUI Alerts: Menus, Dialogs, Toasts and Notifications
9 GUI: ListView10 Multimedia11 Data Persistence
12 Telephone Applications13 Networked Applications14 Gaming and Animation
15 Social Networking16 Location and Map Applications17 Accelerometer and other Sensors
18 Bluetooth19 System and Device Control20 Other Programming Languages
21 Strings and Internationalization22 Packaging, deploying and selling23 Other (temporary holder)

New: Order now at O'Reilly, Chapters-Indigo, Barnes and Noble, or Amazon.

We are building a community-written web site which has also been used to create an O'Reilly Cookbook, both about how to build great Android applications. It is full of how-to information along with code snippets that illustrate the ideas presented. It features both how-to's that overlap with the official documentation, and material that goes beyond this to be more tutorial, more in-depth, or explaining "lessons from the trenches": what actually works to get the application functioning well. Unlike most books written by one, two or a few individuals, this one has input from dozens of contributors, who were all able to view and comment on each others' recipes before the book was published. The published version(s) include printed books, eBooks, and other uses. And long after the book was first published in 2012, this site will continue to exist - with a larger collection of recipes than will fit in the published book - and serve as an Android developer resource site long after.

We welcome contributions from anybody who has something useful to say about how to make usable and successful Android applications. There are several ways of contributing: experienced Android developers can write recipes; newer ones can suggest recipes that they'd like to see; anybody can read and comment on recipes; anybody can vote for existing recipes (voting indicates that you like the recipe and/or think it should be included in the published edition of the book). All we ask of contributors is the following:

  • You agree to license your work - both the textual description and the code fragment(s) - under the Creative Commons Attribution cc-by License;
  • When writing a new recipe, you put your contribution into the standard Cookbook form ("Problem", "Solution", "Discussion") as described on the Add New Recipe form;
  • Only paste in code fragments that have been compiled and run;
  • And of course you assert that the work is your own. Do not copy from others' books or published works; if we wanted to reprint existing stuff we could just find it on the web. And if you are working for an organization, you assert that you have permission to use portions of their code.

Of course, everyone who contributes a Recipe gets credit for it on the site. In addition, everyone who contributed one or more Recipes that are chosen - at the editors' discretion - for inclusion in the published work, received an ebook copy of the finished edition (readable in all supported O'Reilly eBook formats).

Find more about the book - read the Preface

Get the Code

List of all Recipes

Ideas on recipes to write

Get started contributing

Thank you!

Ian Darwin,
Site Editor

In The News
  • Its a book! On 2012-04-05, Ian wrote:

    The book was sent to printing and ebook formatting today -- Hurrah!

  • Book moves to Production! On 2011-12-31, Ian wrote:

    The book took an exciting and important step today; with the completion of my editing of contributions so far, the book moves to Production, and should be in print in February. Thanks to all of you who contributed. Oh, and don't stop writing: this site will continue to grow and hold many more how-to recipes about Android development, some of which will appear in future editions of the printed book.

  • Book Enters Early Release On 2011-10-16, Ian wrote:

    O'Reilly have the first iteration of the Early Release now available on the web site. Note that if you have previously contributed recipe(s) that got approved for print (even a few that got approved but didn't actually make it into the early release) you will be eligible to receive this for free, so you don't need to go and purchase a copy unless you want to show your support for the book.

    This will be revised 'n' times before the book gets into print, based on ongoing review. Comments still welcome!

  • Android's Third Birthday! 30% discount on Android Open registration On 2011-09-25, Ian wrote:

    If you didn't win our Android Open Conference pass you can still get great savings if you register this week (by September 30th). To celebrate Android's third birthday, use discount code THIRD when you register

  • Android Open Winner On 2011-08-04, Ian Darwin wrote:

    Congratulations to jpelgrim (Johan Pelgrim) who will be attending O'Reilly's Android Open 2011 after winning our third 'conference pass' contest prize in a random draw among those who had contributed five or more recipes. AndroidOpen is looking to be a great conference and, if you're a Java developer, it's basically back-to-back with JavaOne, ...

  • Our 200th Recipe On 2011-08-04, Ian wrote:

    While I was zooming back and forth between sessions at OSCon 2011 last week, the web site gave me a happy surprise - we reached Recipe #200! Thanks to all the contributors that helped make this book possible - we are in the home stretch and are working towards publishing the first edition later this fall, with an Early Release before that. Don't let up now, though: there are still lots of great recipes waiting to be written!

When used to describe a portable operating environment for computing devices, Android is a trademark of Google Inc. Use of this trademark is subject to Google Permissions. Java is a trademark of Sun Microsystems Oracle America Inc.