Logo Icon Logo
A Crowd-sourced Cookbook on Writing Great Android® Apps
GitHub logo Twitter logo OReilly Book Cover Art
The Java Cookbook

Order the book/ebook at Chapters-Indigo, Barnes and Noble, or Amazon. See publisher's page and read the book online at O'Reilly Media.

We are building a community-written web site which has also been used to create an O'Reilly Cookbook, both of them about how to build great Android applications. The site and the book are full of how-to information along with code snippets that illustrate the ideas presented; most of the code samples are available as complete projects on github. 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 sign up and 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

Top Contributors
Total Members 844
Android News
How the Google Pixel 2 Now Playing song identification worksNow Playing can show you what song is currently playing in your vicinity even while it's offline. Find out what it's all about here.  Read more...
Google will pay cash bounties for security flaws in high-profile appsGoogle is offering up $1,000 to developers who can find bugs in some Android's most popular apps in the Google Play Security Reward Program.  Read more...
Verizon’s streaming TV service might not see the light of day until spring 2018Verizon's streaming TV service has reportedly been delayed a second time, with issues including non-finalized streaming rights and staff shuffling. Read more...
You can now grab the Daydream View VR headset from the Google StoreFor only $99 you can have your own brand new Google Daydream View VR headset. What new features the headset packs in and when orders start shipping.  Read more...
The Google Pixel 2 XL gets high marks for modularity in its teardownThe Google Pixel 2 XL has gone through a teardown and we're now getting a good look inside. See how it compares to last year's Google Pixel XL. Read more...
Site News...
Historical interview for the release of the first edition. On 2017-09-06, Ian said:Just found this: Interviewed at O'Reilly's only AndroidOpen Conference, in 2011 Read more...
Android 8, API 26, Oreo, is announced! On 2017-08-21, Ian said: Read more...
2nd Edition listed on Amazon! On 2016-10-12, Ian said:Amazon already have the 2nd edition of the print book available for pre-order. Read more...
New Published Edition, New Site Software Real Soon Now On 2016-09-30, Ian said:We are on the cusp between editing and review of the 2nd Edition of the published work, and at the same time working on cutting over the software to a new version (the original site software is 5 years old, and no longer maintainable). Both these changes will happen this year. Expect perturbations on the site, it may switch back and forth from new to old software. At the moment you can preview the new software by using .net instead of .com in the URL.