Book Image

Asynchronous Android

By : Steve Liles
Book Image

Asynchronous Android

By: Steve Liles

Overview of this book

With more than a million apps available from Google Play, it is more important than ever to build apps that stand out from the crowd. To be successful, apps must react quickly to user input, deliver results in a flash, and sync data in the background. The key to this is understanding the right way to implement asynchronous operations that work with the platform, instead of against it. Asynchronous Android is a practical book that guides you through the concurrency constructs provided by the Android platform, illustrating the applications, benefits, and pitfalls of each.Learn to use AsyncTask correctly to perform operations in the background, keeping user-interfaces running smoothly while avoiding treacherous memory leaks. Discover Handler, HandlerThread and Looper, the related and fundamental building blocks of asynchronous programming in Android. Escape from the constraints of the Activity lifecycle to load and cache data efficiently across your entire application with the Loader framework. Keep your data fresh with scheduled tasks, and understand how Services let your application continue to run in the background, even when the user is busy with something else.Asynchronous Android will help you to build well-behaved apps with smooth, responsive user-interfaces that delight users with speedy results and data that's always fresh, and keep the system happy and the battery charged by playing by the rules.
Table of Contents (14 chapters)
Asynchronous Android
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

About the Reviewers

David Bakin's first concurrent program was a Tektronix terminal emulator, written in assembly for an IMLAC PDS-1, which was a PDP-8-like machine with a GPU. He's written a lot of multiprocess and multithread concurrent programs and a number of tools for visualizing and debugging concurrent programs since then. He says computers now are orders of magnitude more powerful than the PDS-1, but concurrent programming hasn't gotten any easier.

His favorite languages are C++ and Haskell, and he prefers to use strong typing and functional programming techniques to write correct code. On the other hand, he also likes Smalltalk, Mathematica, and SIMD code in assembler because they're a lot of fun.

Elie Abu Haydar, born and raised in Beirut, has been interested in software development since his high school years. In 2006, he graduated from the American University of Science and Technology in Lebanon with a BS in Computer Science. As a software developer at KnowledgeView Ltd., Elie is seriously involved in every aspect of newsroom and publishing products where he uses Java to develop publishing solutions. These include backend web services and frontend web and mobile applications. Elie also contributes in the technical research and development of existing and future company projects.

Hassan Makki is a computer and communication engineer. He was born in 1979 in Lebanon and graduated in 2005. Since graduation, he has worked as a software engineer and has long-standing experience in C++, Java, and Android development. He began developing and managing Web and Android apps in 2011, and has developed around 30 apps related to news, music, sports, and advertisements.

Matt Preston is a professional software engineer with 14 years of experience in developing and maintaining a variety of systems for large international news and media organizations. He has worked on a range of low-latency/high-concurrency projects, ranging from mobile apps to distributed systems. Recently, he has been working on low-latency search and analytics using Elasticsearch.

Hélder Vasconcelos has been a senior software engineer at Airtel ATN (Dublin, Ireland) since October 2012. He has extensive experience in designing and developing real-time/multithreaded Java and C/C++ applications for the telecommunications and aviation industry. Apart from his day-to-day job, for the last three years, he has been designing and developing native Android applications for Bearstouch Software and other third-party clients.

He graduated with a degree in Electronic & Telecommunications Engineering from the University of Aveiro in January 2006. He worked as a VoIP systems engineer at RedeRia Innovation (Aveiro, Portugal) from January 2006 to June 2007. He also worked as a software engineer at Outsoft/PT Inovação (Aveiro, Portugal) from October 2007 to October 2012.