Efficient Android Threading: Asynchronous Processing Techniques for Android Applications

Efficient Android Threading: Asynchronous Processing Techniques for Android Applications

Anders Goransson


Multithreading is vital with a view to create an Android app with a very good person event, yet how are you aware which strategies will help clear up your challenge? This functional ebook describes many asynchronous mechanisms on hand within the Android Sdk, and gives guidance for choosing those best for the app you’re building.

writer Anders Goransson demonstrates the benefits and drawbacks of every procedure, with pattern code and precise causes for utilizing it successfully. the 1st a part of the ebook describes the construction blocks of asynchronous processing, and the second one half covers Android libraries and constructs for constructing speedy, responsive, and well-structured apps.

  • Understand multithreading fundamentals in Java and at the Android platform
  • Learn how threads converse inside and among processes
  • Use thoughts to minimize the danger of reminiscence leaks
  • Manage the lifecycle of a easy thread
  • Run initiatives sequentially within the heritage with HandlerThread
  • Use Java’s Executor Framework to regulate or cancel threads
  • Handle historical past activity execution with AsyncTask and IntentService
  • Access content material companies with AsyncQueryHandler
  • Use loaders to replace the Ui with new data

Show sample text content

Download sample