Android Cookbook
Problems and Solutions for Android Developers
Publisher: O'Reilly Media
Final Release Date: April 2012
Pages: 710

Jump in and build working Android apps with the help of more than 200 tested recipes. With this cookbook, you’ll find solutions for working with the user interfaces, multitouch gestures, location awareness, web services, and device features such as the phone, camera, and accelerometer. You also get useful steps on packaging your app for the Android Market.

Ideal for developers familiar with Java, Android basics, and the Java SE API, this book features recipes contributed by more than three dozen developers from the Android community. Each recipe provides a clear solution and sample code you can use in your project right away. Among numerous topics, this cookbook helps you:

  • Use guidelines for designing a successful Android app
  • Work with UI controls, effective layouts, and graphical elements
  • Learn how to take advantage of Android’s rich features in your app
  • Save and retrieve application data in files, SD cards, and embedded databases
  • Access RESTful web services, RSS/Atom feeds, and information from websites
  • Create location-aware services to find locations and landmarks, and situate them on Google Maps and OpenStreetMap
  • Test and troubleshoot individual components and your entire application
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyAndroid Cookbook
 
4.6

(based on 11 reviews)

Ratings Distribution

  • 5 Stars

     

    (9)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (2)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

90%

of respondents would recommend this to a friend.

Pros

  • Easy to understand (8)
  • Helpful examples (8)
  • Well-written (7)
  • Accurate (6)
  • Concise (4)

Cons

No Cons

Best Uses

  • Intermediate (9)
  • Novice (5)
  • Expert (4)
  • Student (4)
    • Reviewer Profile:
    • Developer (8), Designer (3)

Reviewed by 11 customers

Displaying reviews 1-10

Back to top

Previous | Next »

 
5.0

Excellent

By Adriano de Jesus

from Sao Paulo - Brasil

Verified Buyer

Comments about oreilly Android Cookbook:

Helpfull

(1 of 1 customers found this review helpful)

 
3.0

It is interesting

By Mitsuo

from Sao Paulo, SP

About Me Developer

Verified Buyer

Pros

  • Easy to understand
  • Helpful examples
  • Well-written

Cons

  • Not comprehensive enough

Best Uses

  • Expert
  • Intermediate

Comments about oreilly Android Cookbook:

I am reading that book yet, but I like the inumerous references it have for complementary study. I indicate it to people who already know a little about Java language

(1 of 1 customers found this review helpful)

 
5.0

I'd read this book again and again

By Cristian Rojas

from Bogotá, Colombia

About Me Developer

Pros

  • Easy to understand
  • Helpful examples
  • Well-written

Cons

    Best Uses

    • Intermediate
    • Novice
    • Student

    Comments about oreilly Android Cookbook:

    This is a excellent book for Android Beginners, it explains from what's android?, how to install the developments tools until the most advanced tools that android API provide us trought examples!

    (2 of 2 customers found this review helpful)

     
    5.0

    Excellent!

    By herb

    from Vienna, Austria

    About Me Designer, Developer, Educator

    Verified Reviewer

    Pros

    • Accurate
    • Comprehensive
    • Concise
    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Intermediate
      • Novice
      • Student

      Comments about oreilly Android Cookbook:

      This is exactly what you need. I shows you how to write Android apps without much blabla. I've read other Android book before, this one made me productive. Thank$!
      It is easy to read and understand. Recommended for teaching if you want results (working apps).
      Android is a moving target, so you need to do your own work on top of it. There's no way around this.
      This is why I give five stars.

       
      5.0

      Great Programmer Reference

      By Android Developer from GDG (Google Devel

      from Nashville

      About Me Developer

      Pros

      • Accurate
      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Expert
        • Intermediate

        Comments about oreilly Android Cookbook:

        This is a very well written book clear concise content with clear usable and concise examples... This is my new Android Desk Reference.

        (4 of 8 customers found this review helpful)

         
        3.0

        disappointed - wrong expectations

        By dorjeduck

        from samsara

        About Me Developer

        Verified Reviewer

        Pros

          Cons

          • Not comprehensive enough
          • Too many errors

          Best Uses

          • Intermediate

          Comments about oreilly Android Cookbook:

          Just started using the book yet my first experiences with Chapter 9 are quite disappointing. The main problem I have is that I was expecting that the recipes from the website are used as the base yet put together and modified in a way that the while cookbook becomes a consistent source of recipes.

          Here some things I dislike.

          9.2 discourages from using ListActivity for given reasons. (->9.4)
          9.3 doesnt give any hint what android:layout_below = "@id/textView1" is about.
          9.4 uses the in 9.2 discouraged ListActivity, gives a dead link for the source code
          9.5 source code has only a readme.txt, saying "This example still needs to be re-created. " Great, why is it in the book.
          9.7 starts the discussion with "It's no secret that the best way to explain something is through an example, so let's dive in." Well I am in the middle of a book of examples. Rather than reading about the concrete example outside the scope of the recipe I would prefer a complete simple example showing the key points.
          9.8 not working on my device (2.3.4), I read on the web android:screenOrientation="portrait" prevents onConfigurationChanged to be called (not sure if this is the problem, example useless)

          Disappointed that ListFilter etc are not covered.

          I am sure the book has much to offer yet it is just not a book, rather it seems it is a non-connected collection of recipes of various authors. I guess I am just spoiled by the Perl Cookbook.

          I bought the ebook because I am abroad not always with internet access. If you are online I would recommend stay with the website http://androidcookbook.com/ the book has less to offer.

          (5 of 6 customers found this review helpful)

           
          5.0

          Great Android Book for beginners and exp

          By DDD

          from Italy

          About Me Developer

          Verified Reviewer

          Pros

          • Accurate
          • Concise
          • Easy to understand
          • Helpful examples
          • Well-written

          Cons

            Best Uses

            • Expert
            • Intermediate
            • Novice
            • Student

            Comments about oreilly Android Cookbook:

            Android Cookbook - Book Review
            This book talks about the new mobile OS Android. This OS (even if Framework is more appropriate) is widespreading through mobile and embedded devices. As the title suggest, this book use a Cookbook style for explain the concepts. Each problem is treated as a Recipe and is composed by 3 parts:

            Problem: few rows to describe the problem that needs to be solved.
            Solution: few rows that explains briefly what must be done for solve the problem. After reading the book, this is kind of a bookmark for future research in the book and allows the reader to remember how to solve a problem simply reading few lines.
            Discussion: Here is described the solution in all of its aspect. The code is widely described and everything is covered to let the reader understand the solution.

            Because this book covers a lot of problems with their relative solution, I prefered to copy the description of the chapters as appears in the preface of the book instead of described them myself.

            What's in This Book?

            Chapter 1, Getting Started, takes you through the steps of setting up the Android development environment and building several simple applications of the well-known Hello, World" type pioneered by Brian Kernighan.

            Chapter 2, Designing a Successful Application, covers some of the differences in mobile computing that will hit developers coming from desktop and enterprise software environments, and talks about how mobile design (in particular, Android design) differs from those other environments.

            Chapter 3, Testing. Not so that you'll skip it, but so that you'll read and heed. We talk about unit testing individual components as well as testing out your entire application in a well-controlled way. Android provides a variety of mechanisms for communicating within an application and across applications.

            In Chapter 4, Inter-/Intra-Process Communication we discuss intents and broadcast receivers, services, AsyncTasks, and handlers. Another communication mechanism is about allowing controlled access to data that is usually in an SQL database.

            In Chapter 5, Content Providers, we show you how to make an application that can be used by other applications through something as simple but ubiquitous (in Android) as the URL.

            Chapter 6, Graphics, covers a range of topics related to graphics, including use of the graphical drawing and compositing facilities in Android as well as using desktop tools to develop graphical images, textures, icons, and so on that will be incorporated into your finished application.

            Chapter 7, Graphical User Interface, covers the main ins and outs of GUI development for Android. Examples are given both in XML and, in a few cases, in Java-coded GUI development.

            Chapter 8, GUI Alerts: Menus, Dialogs, Toasts, and Notifications, covers all the pop-up mechanisms—menus, dialogs, and toasts—and one that doesn't pop up but is also for interaction outside your application's window, Android's notification mechanism.

            Chapter 9, GUI: ListView, focuses on one of the most important GUI components in Android, the ListView. Android is rich in multimedia capabilities.

            Chapter 10, Multimedia, shows how to use the most important of these.

            Chapter 11, Data Persistence, shows how to save data into files, databases, and so on. And how to retrieve it later, of course. Android started out as an operating system for mobile telephones.

            Chapter 12, Telephone Applications, shows how to control and react to the telephone device that is in most mobile devices nowadays.Mobile devices are, for the most part, always-on and always-connected. This has a major impact on how people use them and think about them.

            Chapter 13, Networked Applications, shows the coding for traditional networked applications.

            Chapter 14, Gaming and Animation.

            Chapter 15, Social Networking.

            Chapter 16, Location and Map Applications, discusses how to find your location, how to get map data from Google and OpenStreetMap, and how applications can be location-aware in ways that are just now being explored.

            Chapter 17, Accelerometer, talks about the sensors built into most Android devices and allow to use them.

            Chapter 18, Bluetooth, talks about the low-energy very-local area networking that Bluetooth enables, going beyond connecting your Bluetooth headset to your phone.

            Chapter 19, System and Device Control. Since Android is Linux-based, a few of the recipes in this chapter deal with traditional Unix/Linux commands and facilities.

            In Chapter 20, Other Programming Languages and Frameworks, we explore the use of other programming languages to write all or part of your Android application. Examplesinclude C, Perl, Python, Lisp, and other languages.

            Chapter 21, Strings and Internationalization, goes over the issues of language and culture and how they relate to Android.

            Chapter 22, Packaging, Deploying, and Distributing/Selling Your App, shows how to prepare your application for distribution the Android Market, and to use that as well as other markets to get your application out to the people who will use it.

            I've never read an Android book before this one and I was a little bit suspicious about how this book would be comprehensible compared to other books more focused on the whole framework instead of single problems. I remained surprise of how this book is clear even for new comers in the Android world, each problem is discussed perfectly and the discussion part of each problem covers also the paradigms of the Android framework. Has to be noticed that a strong Java background is needed, together with a basic knowledge of the Eclipse IDE. I suggest this book for both new Android developers and expert ones, the former can find in this book an explanation about the Android framework, how to use the framework with real problems and a lot of examples that can be reused for create the application they imagine. The latter can improve their knowledge about topics not treated in their current developments and improve with new functionality their apps.

            (1 of 1 customers found this review helpful)

             
            5.0

            My Review of Android Cookbook by Darwin

            By hfb

            from Nashua, NH

            About Me Engineer, Maker

            Verified Reviewer

            Pros

            • Accurate
            • Easy to understand
            • Helpful examples

            Cons

              Best Uses

              • Intermediate

              Comments about oreilly Android Cookbook:

              I have been a big fan of the Cookbooks for various languages and am also a fan of Android Cookbook by Ian F. Darwin.
              If you know how to program, this is perfect to learn how to program for the Android OS. If there's something specific you need to find out how to do, this has great examples on how to do just about anything. I found it was a great reference to have on hand for those times I had a question about how to figure something out.
              I would definitely recommend this to anyone that might be on the fence about it. It's a keeper just like my Arduino Cookbook.
              Disclaimer: This book was received as part of the O'Reilly Blogger Review Program. All comments represent my thoughts and opinions.

              (1 of 1 customers found this review helpful)

               
              5.0

              Amazing!

              By Kenia

              from San Diego

              About Me Designer, Developer

              Verified Reviewer

              Pros

              • Accurate
              • Easy to understand
              • Helpful examples
              • Well-written

              Cons

                Best Uses

                • Intermediate
                • Novice

                Comments about oreilly Android Cookbook:

                This book is a treasure trove, so far it has helped me solve problems with methodical explanations and sample code.

                Although I am an Android novice it is clear to follow and understand.

                I would highly recommend this book!

                (1 of 1 customers found this review helpful)

                 
                5.0

                A pragmatic hands on guide

                By kdf

                from Mumbai IN

                Verified Reviewer

                Comments about oreilly Android Cookbook:

                I use the book whenever I am stuck with a real world problem when programming Android. Most often the solution is there, explained methodically, and liberally spattered with real world example code.

                It makes for a good read for all, starting from the hobbyist Android coder to the seasoned professional.

                Displaying reviews 1-10

                Back to top

                Previous | Next »

                 
                Buy 2 Get 1 Free Free Shipping Guarantee
                Buying Options
                Immediate Access - Go Digital what's this?
                Ebook:  $46.99
                Formats:  DAISY, ePub, Mobi, PDF
                Print & Ebook:  $60.49
                Print:  $54.99