Efficient Android Threading
Asynchronous Processing Techniques for Android Applications
Publisher: O'Reilly Media
Final Release Date: May 2014
Pages: 280

Multithreading is essential if you want to create an Android app with a great user experience, but how do you know which techniques can help solve your problem? This practical book describes many asynchronous mechanisms available in the Android SDK, and provides guidelines for selecting the ones most appropriate for the app you’re building.

Author Anders Goransson demonstrates the advantages and disadvantages of each technique, with sample code and detailed explanations for using it efficiently. The first part of the book describes the building blocks of asynchronous processing, and the second part covers Android libraries and constructs for developing fast, responsive, and well-structured apps.

  • Understand multithreading basics in Java and on the Android platform
  • Learn how threads communicate within and between processes
  • Use strategies to reduce the risk of memory leaks
  • Manage the lifecycle of a basic thread
  • Run tasks sequentially in the background with HandlerThread
  • Use Java’s Executor Framework to control or cancel threads
  • Handle background task execution with AsyncTask and IntentService
  • Access content providers with AsyncQueryHandler
  • Use loaders to update the UI with new data
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyEfficient Android Threading
 
4.7

(based on 3 reviews)

Ratings Distribution

  • 5 Stars

     

    (2)

  • 4 Stars

     

    (1)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Well-written (3)

Cons

    Best Uses

    • Expert (3)
    • Intermediate (3)

    Reviewed by 3 customers

    Sort by

    Displaying reviews 1-3

    Back to top

     
    4.0

    Covers main topics for Android threading

    By gatzka

    from Darmstadt, Germany

    About Me Developer

    Verified Reviewer

    Pros

    • Accurate
    • Concise
    • Well-written

    Cons

    • Not comprehensive enough

    Best Uses

    • Expert
    • Intermediate

    Comments about oreilly Efficient Android Threading:

    This book covers the main topics for android threading. It starts with the multithreading mechanisms in Java and then covers the android specific topics like AsyncTasks and Services. I found the hints regarding memory management and lifecycles especially helpful to prevent memory leaks.

    The book covers the main thread and interprocess communication topics well, but I missed a discussion of how to effectively implement Parcelable (the android serialization mechanism) and a discussion about the pros and cons of the different mechanisms with respect to coupling and architecture in general.

    (0 of 1 customers found this review helpful)

     
    5.0

    Very useful

    By Zed the runner

    from EU

    Pros

    • Accurate
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Expert
      • Intermediate

      Comments about oreilly Efficient Android Threading:

      I consider myself a beginner and programming is rather my hobby. I also had very little experience with Android so reading this book wasn't easy and it took a while until I digested it all. As a beginner I had to first learn Java threading fundamentals which are also partly covered by this book but one need to gain certain experience first. However, soon I realised that it is the only comprehensive source where you can find all information about threading in Android. Simply put, I found this book excellent.

      (2 of 2 customers found this review helpful)

       
      5.0

      Excellent Resource

      By Scott

      from Orlando, FL

      About Me Developer

      Pros

      • Concise
      • Easy to understand
      • Well-written

      Cons

        Best Uses

        • Expert
        • Intermediate

        Comments about oreilly Efficient Android Threading:

        I'm a relative newbie to Android but an experienced programmer. I wasn't getting the details I needed from the official Android API/Developers site for a project I was working on and I needed a better fundamental understanding of how Android works(threads, content providers, activities, etc).

        I quickly realized that you can't effectively program in Android without really understanding how things work. This book provides that understanding and will save you a lot of blog/stackoverflow searching time by reading it first. However, if you're just trying to write Hello World apps then it might not be a perfect fit.

        This book provides a very clear understanding of how Android works(threads down to the OS level) and interactions between them. It provides the info in a very logical, top down flow and explains how each of the major components(activity, broadcast receiver, content provider, service) interact and work.

        That said, it may not be for someone looking for a cookbook of code snippets. It has example code to reinforce how things work, but it's not geared for a vast array of example code. I found it a great reference book for the fundamentals of Android OS programming.

        Displaying reviews 1-3

        Back to top

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

        Available in Multiple Languages