• Complain

Anders Goransson - Efficient Android Threading: Asynchronous Processing Techniques for Android Applications

Here you can read online Anders Goransson - Efficient Android Threading: Asynchronous Processing Techniques for Android Applications full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2014, publisher: OReilly Media, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Anders Goransson Efficient Android Threading: Asynchronous Processing Techniques for Android Applications
  • Book:
    Efficient Android Threading: Asynchronous Processing Techniques for Android Applications
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2014
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Efficient Android Threading: Asynchronous Processing Techniques for Android Applications: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Efficient Android Threading: Asynchronous Processing Techniques for Android Applications" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

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 youre 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 Javas 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

Anders Goransson: author's other books


Who wrote Efficient Android Threading: Asynchronous Processing Techniques for Android Applications? Find out the surname, the name of the author of the book and a list of all author's works by series.

Efficient Android Threading: Asynchronous Processing Techniques for Android Applications — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Efficient Android Threading: Asynchronous Processing Techniques for Android Applications" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Efficient Android Threading
Anders Gransson
Dedication

To Anna, Fabian, and Ida.

Preface

Efficient Android Threading explores how to achieve robust and reliable multithreaded Android applications. Well look at the asynchronous mechanisms that are available in the Android SDK and determine appropriate implementations to achieve fast, responsive, and well-structured applications.

Lets face it: multithreading is required to create applications with a great user experience, but it also increases the complexity of the application and the likelihood of runtime errors. The complexity partly comes from the built-in difficulty of execution on multiple threads and from applications that arent utilizing the Android platform efficiently.

This book aims to guide application developers to selecting an asynchronous mechanism based on an understanding of its advantages and difficulties. By using the right asynchronous mechanism at the right time, much of the complexity is transferred from the application to the platform, making the application code more maintainable and less error prone. As a rule of thumb, asynchronous execution should not induce more complexity to the code than necessary, which is achieved through a wise choice from the palette of asynchronous mechanisms in Android.

Although a high-level asynchronous mechanism can be very convenient to use, it still needs to be understoodnot only usedor the application may suffer from equally difficult runtime errors, performance degradation, or memory leaks. Therefore, this book not only contains practical guidelines and examples, but also explores the underlying enablers for asynchronous execution on Android.

Audience

This book is for Java programmers who have learned the basics ofAndroid programming. The book introduces techniques that arefundamental to writing robust and responsive applications, usingstandard Android libraries.

Contents of This Book

This book contains two main parts: . The first part describes the foundation for threads on Androidi.e., Java, Linux, Handlersand its impact on the application. The second part is more hands-on, looking into the asynchronous mechanisms that an application has at its disposal.

correctly.

Explains how the structure of the Android runtimeand how the various components of an Android application affect the use ofthreads and multiprocessing.Covers the fundamentals of concurrent execution in Java.Describes how Android handles threads and how the application threads execute in the Linux OS. It includes important topics like scheduling and control groups, as well as their impact on responsiveness.Covers basic communication between threads, such as shared memory, signals, and the commonly used Android messages.Shows how Android enhances the IPC mechanisms in Linux with mechanisms such as RPC and messaging.Explains how to avoid leaks, which can causeapps to degrade the system and be uninstalled by users.

covers the higher-level libraries andconstructs in Android that make programming with threads safer andeasier.

Describes the most basic asynchronous construction, i.e, java.lang.Thread, and how to handle the various states and problems that can occur.Shows a convenient way to run tasks sequentially in the background.Offers techniques for dealing with scheduling, errors, and other aspects of thread handling, such as thread pools.Covers the AsyncTaskprobably the most popular asynchronous techniqueand how to use it correctly to avoid its pitfalls.Covers the essential Service component, which is useful for functionality that you want to offer to multiple applications or to keep the application alive during background execution.Builds on the previous chapter with a discussion of a useful technique for executing off the main UI thread.A high-level mechanism that simplifies fast asynchronous access to content providers.Discover how the UI can be updated with loaders, where new data is delivered asynchronously whenever the content changes.Given all the techniques described throughout this book, how do you choose the right one for your app? This chapter offers guidelines for making this choice.
Conventions Used in this Book

The following typographical conventions are used in this book:

Italic Used for emphasis, new terms, URLs, commands and utilities, and file and directory names. Constant width Indicates variables, functions, types, objects, and other programming constructs.
Constant width italic Indicates place-holders in code orcommands that should be replaced by appropriate values.
Tip

This element signifies a tip, suggestion, or a general note.

Caution

This element indicates a trap or pitfall to watch out for, typicallysomething that isnt immediately obvious.

Using Code Examples

Supplemental material (code examples, exercises, etc.) is available for download at https://github.com/andersgoransson/eatbookexamples.

This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you are reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from OReilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your products documentation does require permission.

We appreciate attribution. An attribution usually includes the title, author, publisher, and ISBN.

If you believe that your use of code examples falls outside of fair use or the permission given above, feel free to contact us at .

Examples will be maintained at: :andersgoransson/eatbookexamples.git

Safari Books Online
Note

Safari Books Online is an on-demand digital library that delivers expert content in both book and video form from the worlds leading authors in technology and business.

Technology professionals, software developers, web designers, and business and creative professionals use Safari Books Online as their primary resource for research, problem solving, learning, and certification training.

Safari Books Online offers a range of product mixes and pricing programs for organizations, government agencies, and individuals. Subscribers have access to thousands of books, training videos, and prepublication manuscripts in one fully searchable database from publishers like OReilly Media, Prentice Hall Professional, Addison-Wesley Professional, Microsoft Press, Sams, Que, Peachpit Press, Focal Press, Cisco Press, John Wiley & Sons, Syngress, Morgan Kaufmann, IBM Redbooks, Packt, Adobe Press, FT Press, Apress, Manning, New Riders, McGraw-Hill, Jones & Bartlett, Course Technology, and dozens more. For more information about Safari Books Online, please visit us online.

How to Contact Us

Please address comments and questions concerning this book to the publisher:

OReilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
800-998-9938 (in the United States or Canada)
707-829-0515 (international or local)
707-829-0104 (fax)

We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at http://bit.ly/efficient-android-threading.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Efficient Android Threading: Asynchronous Processing Techniques for Android Applications»

Look at similar books to Efficient Android Threading: Asynchronous Processing Techniques for Android Applications. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Efficient Android Threading: Asynchronous Processing Techniques for Android Applications»

Discussion, reviews of the book Efficient Android Threading: Asynchronous Processing Techniques for Android Applications and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.