Efficient Android Threading. Asynchronous Processing Techniques for Android Applications
![Język publikacji: angielski Język publikacji: angielski](https://static01.helion.com.pl/global/flagi/1.png)
- Autor:
- Anders Goransson
![Efficient Android Threading. Asynchronous Processing Techniques for Android Applications Anders Goransson - okładka ebooka](https://static01.helion.com.pl/global/okladki/326x466/e_2g1w.png)
![Efficient Android Threading. Asynchronous Processing Techniques for Android Applications Anders Goransson - tył okładki ebooka](https://static01.helion.com.pl/global/okladki-tyl/326x466/e_2g1w.png)
- Ocena:
- Bądź pierwszym, który oceni tę książkę
- Stron:
- 280
- Dostępne formaty:
-
ePubMobi
Opis ebooka: Efficient Android Threading. Asynchronous Processing Techniques for Android Applications
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
Wybrane bestsellery
-
This book will teach you how to build robust and production-ready apps using Jetpack Compose, Room, DataStore, CameraX, ExoPlayer, and more, as well as help you solve common problems that you'll face while creating real-world apps.
Thriving in Android Development Using Kotlin. Use the newest features of the Android framework to develop production-grade apps Thriving in Android Development Using Kotlin. Use the newest features of the Android framework to develop production-grade apps
(85.68 zł najniższa cena z 30 dni) -
Written with the best practices recommended by the Android Team at Google in mind, this book will teach you how to develop Android apps with Kotlin and prepare you for a career in Android app development.
Mastering Kotlin for Android 14. Build powerful Android apps from scratch using Jetpack libraries and Jetpack Compose Mastering Kotlin for Android 14. Build powerful Android apps from scratch using Jetpack libraries and Jetpack Compose
-
Android UI development with Jetpack Compose will help you understand the core concepts of Android’s declarative UI toolkit in a practical manner. The chapters are designed in a way to familiarize you with the latest ways of building modern Android applications with ease.
Android UI Development with Jetpack Compose. Bring declarative and native UI to life quickly and easily on Android using Jetpack Compose and Kotlin - Second Edition Android UI Development with Jetpack Compose. Bring declarative and native UI to life quickly and easily on Android using Jetpack Compose and Kotlin - Second Edition
-
Jesteś początkującym programistą, poszukujesz swojej ścieżki i zastanawiasz się właśnie nad tym, czy nie skierować uwagi w stronę aplikacji mobilnych? To książka dla Ciebie. Zawarty w niej materiał jest odpowiedni dla osoby dysponującej podstawami któregoś z języków programowania i bazowym doświa...(41.40 zł najniższa cena z 30 dni)
44.85 zł
69.00 zł(-35%) -
W tej książce znajdziesz fascynującą historię Androida, opowiedzianą przez jej bohaterów. Dowiesz się, skąd się wziął pomysł na system operacyjny dla urządzeń mobilnych, kim byli ludzie, którzy zaczęli nad nim pracę, jak powstawał zespół i jakie trudności trzeba było pokonać, aby móc rzucić wyzwa...
Androidy. Zespół, który stworzył system operacyjny Android Androidy. Zespół, który stworzył system operacyjny Android
(35.94 zł najniższa cena z 30 dni)38.94 zł
59.90 zł(-35%) -
Stwórz Grę Mobilną JavaScript React Native ES6+ React - aktualizacja 2023 Witaj w poradniku wydawnictwa poswojsku.pl, dzięki któremu wspólnie zaprogramujemy grę mobilną Falling Jumping Shapes. Stworzymy projekt od pomysłu przez grafikę, aż do kompleksowego zaprogramowania w najwspanialszym jęz...
-
Learn the essentials of working with Flutter and Dart to build full stack applications that meet the needs of a cloud-driven world. Together, the Flutter open source UI software development kit and the Dart programming language for client development provide a unified solution to building applica...(202.44 zł najniższa cena z 30 dni)
202.39 zł
239.00 zł(-15%) -
Atomowy Kotlin to książka dla wszystkich, którzy chcą nauczyć się Kotlina stosunkowo młodego, ale bardzo popularnego i pożądanego na rynku pracy języka programowania. Nieważne, czy jesteś początkującym, czy doświadczonym programistą, dzięki tej publikacji Kotlin nie będzie miał dla Ciebie żadny...(107.82 zł najniższa cena z 30 dni)
109.71 zł
139.00 zł(-21%) -
Witaj w poradniku wydawnictwa poswojsku.pl, dzięki któremu wspólnie zaprogramujemy grę mobilną Falling Jumping Shapes. Stworzymy projekt od pomysłu przez grafikę, aż do kompleksowego zaprogramowania w najwspanialszym języku programowania: JavaScript. Aby jednak to osiągnąć, najpierw nauczę Ciebie...
Stwórz Grę Aplikacje Mobilne ES6+ JavaScript React Native - Hooks Stwórz Grę Aplikacje Mobilne ES6+ JavaScript React Native - Hooks
-
This book demonstrates a roadmap to making important decisions in Android app development. Clean Android Architecture shows you how to structure your app in different layers to make it clean and introduces the available technologies used for integration. This practical guide will help you underst...
Clean Android Architecture. Take a layered approach to writing clean, testable, and decoupled Android applications Clean Android Architecture. Take a layered approach to writing clean, testable, and decoupled Android applications
(106.05 zł najniższa cena z 30 dni)106.00 zł
109.00 zł(-3%)
Kup polskie wydanie:
Android. Aplikacje wielowątkowe. Techniki przetwarzania
- Autor:
- Anders Göransson
24,50 zł
49,00 zł
(24.50 zł najniższa cena z 30 dni)
Ebooka "Efficient Android Threading. Asynchronous Processing Techniques for Android Applications" przeczytasz na:
-
czytnikach Inkbook, Kindle, Pocketbook, Onyx Boox i innych
-
systemach Windows, MacOS i innych
-
systemach Windows, Android, iOS, HarmonyOS
-
na dowolnych urządzeniach i aplikacjach obsługujących formaty: PDF, EPub, Mobi
Masz pytania? Zajrzyj do zakładki Pomoc »
Audiobooka "Efficient Android Threading. Asynchronous Processing Techniques for Android Applications" posłuchasz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolnych urządzeniach i aplikacjach obsługujących format MP3 (pliki spakowane w ZIP)
Masz pytania? Zajrzyj do zakładki Pomoc »
Kurs Video "Efficient Android Threading. Asynchronous Processing Techniques for Android Applications" zobaczysz:
-
w aplikacjach Ebookpoint i Videopoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych z dostępem do najnowszej wersji Twojej przeglądarki internetowej
Szczegóły ebooka
- ISBN Ebooka:
- 978-14-493-6409-0, 9781449364090
- Data wydania ebooka:
-
2014-05-22
Data wydania ebooka często jest dniem wprowadzenia tytułu do sprzedaży i może nie być równoznaczna z datą wydania książki papierowej. Dodatkowe informacje możesz znaleźć w darmowym fragmencie. Jeśli masz wątpliwości skontaktuj się z nami sklep@ebookpoint.pl.
- Język publikacji:
- angielski
- Rozmiar pliku ePub:
- 4.2MB
- Rozmiar pliku Mobi:
- 4.2MB
Spis treści ebooka
- Efficient Android Threading
- Dedication
- Preface
- Audience
- Contents of This Book
- Conventions Used in this Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgements
- 1. Android Components and the Need for Multiprocessing
- Android Software Stack
- Application Architecture
- Application
- Components
- Activity
- Service
- ContentProvider
- BroadcastReceiver
- Application Execution
- Linux Process
- Lifecycle
- Application start
- Application termination
- Structuring Applications for Performance
- Creating Responsive Applications Through Threads
- Summary
- I. Fundamentals
- 2. Multithreading in Java
- Thread Basics
- Execution
- Single-Threaded Application
- Multithreaded Application
- Increased resource consumption
- Increased complexity
- Data inconsistency
- Thread Basics
- Thread Safety
- Intrinsic Lock and Java Monitor
- Synchronize Access to Shared Resources
- Using the intrinsic lock
- Using explicit locking mechanisms
- Example: Consumer and Producer
- 2. Multithreading in Java
- Task Execution Strategies
- Concurrent Execution Design
- Summary
- 3. Threads on Android
- Android Application Threads
- UI Thread
- Binder Threads
- Background Threads
- Android Application Threads
- The Linux Process and Threads
- Scheduling
- Priority
- Control groups
- Scheduling
- Summary
- 4. Thread Communication
- Pipes
- Basic Pipe Use
- Example: Text Processing on a Worker Thread
- Pipes
- Shared Memory
- Signaling
- BlockingQueue
- Android Message Passing
- Example: Basic Message Passing
- Classes Used in Message Passing
- MessageQueue
- MessageQueue.IdleHandler
- Example: Using IdleHandler to terminate an unused thread
- Message
- Initialized
- Pending
- Dispatched
- Recycled
- Looper
- Looper termination
- The UI thread Looper
- Handler
- Setup
- Message creation
- Message insertion
- Example: Two-way message passing
- Message processing
- Removing Messages from the Queue
- Observing the Message Queue
- Taking a snapshot of the current message queue
- Tracing the message queue processing
- Communicating with the UI Thread
- Summary
- 5. Interprocess Communication
- Android RPC
- Binder
- Android RPC
- AIDL
- Synchronous RPC
- Asynchronous RPC
- Message Passing Using the Binder
- One-Way Communication
- Two-Way Communication
- Summary
- 6. Memory Management
- Garbage Collection
- Thread-Related Memory Leaks
- Thread Execution
- Inner classes
- Static inner classes
- The lifecycle mismatch
- Thread Execution
- Thread Communication
- Sending a data message
- Posting a task message
- Avoiding Memory Leaks
- Use Static Inner Classes
- Use Weak References
- Stop Worker Thread Execution
- Retain Worker Threads
- Clean Up the Message Queue
- Summary
- II. Asynchronous Techniques
- 7. Managing the Lifecycle of a Basic Thread
- Basics
- Lifecycle
- Interruptions
- Uncaught Exceptions
- Basics
- Thread Management
- Definition and Start
- Anonymous inner class
- Public thread
- Static inner class thread definition
- Summary of options for thread definition
- Definition and Start
- Retention
- Retaining a thread in an Activity
- Retaining a thread in a Fragment
- 7. Managing the Lifecycle of a Basic Thread
- Summary
- 8. HandlerThread: A High-Level Queueing Mechanism
- Fundamentals
- Lifecycle
- Use Cases
- Repeated Task Execution
- Related Tasks
- Example: Data persistence with SharedPreferences
- Task Chaining
- Example: Chained network calls
- Conditional Task Insertion
- Summary
- 9. Control over Thread Execution Through the Executor Framework
- Executor
- Thread Pools
- Predefined Thread Pools
- Custom Thread Pools
- ThreadPoolExecutor configuration
- Designing a Thread Pool
- Sizing
- Dynamics
- Bounded or unbounded task queue
- Thread configuration
- Extending ThreadPoolExecutor
- Lifecycle
- Shutting Down the Thread Pool
- Thread Pool Uses Cases and Pitfalls
- Favoring thread creation over queuing
- Handling preloaded task queues
- The danger of zero core threads
- Task Management
- Task Representation
- Submitting Tasks
- Individual submission
- invokeAll
- invokeAny
- Rejecting Tasks
- ExecutorCompletionService
- Summary
- 10. Tying a Background Task to the UI Thread with AsyncTask
- Fundamentals
- Creation and Start
- Cancellation
- States
- Example: Limiting an AsyncTask execution to one at the time
- Fundamentals
- Implementing the AsyncTask
- Example: Downloading Images
- Background Task Execution
- Application Global Execution
- Execution Across Platform Versions
- Custom Execution
- Example: Nonglobal sequential execution
- AsyncTask Alternatives
- When an AsyncTask Is Trivially Implemented
- Background Tasks That Need a Looper
- Local Service
- Using execute(Runnable)
- Summary
- 11. Services
- Why Use a Service for Asynchronous Execution?
- Local, Remote, and Global Services
- Creation and Execution
- Lifecycle
- Started Service
- Implementing onStartCommand
- Options for Restarting
- User-Controlled Service
- Example: Bluetooth connection
- Task-Controlled Service
- Example: Concurrent download
- Bound Service
- Local Binding
- Choosing an Asynchronous Technique
- Summary
- 12. IntentService
- Fundamentals
- Good Ways to Use an IntentService
- Sequentially Ordered Tasks
- Example: Web service communication
- Sequentially Ordered Tasks
- Asynchronous Execution in BroadcastReceiver
- Example: Periodical long operations
- IntentService Versus Service
- Summary
- 13. Access ContentProviders with AsyncQueryHandler
- Brief Introduction to ContentProvider
- Justification for Background Processing of a ContentProvider
- Using the AsyncQueryHandler
- Example: Expanding Contact List
- Understanding the AsyncQueryHandler
- Limitations
- Summary
- 14. Automatic Background Execution with Loaders
- Loader Framework
- LoaderManager
- initLoader vs restartLoader
- LoaderManager
- LoaderCallbacks
- AsyncTaskLoader
- Loader Framework
- Painless Data Loading with CursorLoader
- Using the CursorLoader
- Example: Contact list
- Adding CRUD Support
- Example: Use CursorLoader with AsyncQueryHandler
- Implementing Custom Loaders
- Loader Lifecycle
- Background Loading
- Example: Simple custom loader
- Content Management
- Delivering Cached Results
- Example: Custom File Loader
- Handling Multiple Loaders
- Summary
- 15. Summary: Selecting an Asynchronous Technique
- Keep It Simple
- Thread and Resource Management
- Message Communication for Responsiveness
- Avoid Unexpected Task Termination
- Easy Access to ContentProviders
- A. Bibliography
- Books
- Articles
- Presentations
- Index
- Colophon
- Copyright
O'Reilly Media - inne książki
-
Keeping up with the Python ecosystem can be daunting. Its developer tooling doesn't provide the out-of-the-box experience native to languages like Rust and Go. When it comes to long-term project maintenance or collaborating with others, every Python project faces the same problem: how to build re...(203.15 zł najniższa cena z 30 dni)
202.99 zł
239.00 zł(-15%) -
Bringing a deep-learning project into production at scale is quite challenging. To successfully scale your project, a foundational understanding of full stack deep learning, including the knowledge that lies at the intersection of hardware, software, data, and algorithms, is required.This book il...(237.15 zł najniższa cena z 30 dni)
244.22 zł
289.00 zł(-15%) -
Frontend developers have to consider many things: browser compatibility, usability, performance, scalability, SEO, and other best practices. But the most fundamental aspect of creating websites is one that often falls short: accessibility. Accessibility is the cornerstone of any website, and if a...(202.35 zł najniższa cena z 30 dni)
202.30 zł
239.00 zł(-15%) -
In this insightful and comprehensive guide, Addy Osmani shares more than a decade of experience working on the Chrome team at Google, uncovering secrets to engineering effectiveness, efficiency, and team success. Engineers and engineering leaders looking to scale their effectiveness and drive tra...(116.38 zł najniższa cena z 30 dni)
116.33 zł
149.00 zł(-22%) -
Data modeling is the single most overlooked feature in Power BI Desktop, yet it's what sets Power BI apart from other tools on the market. This practical book serves as your fast-forward button for data modeling with Power BI, Analysis Services tabular, and SQL databases. It serves as a starting ...(202.18 zł najniższa cena z 30 dni)
202.13 zł
239.00 zł(-15%) -
C# is undeniably one of the most versatile programming languages available to engineers today. With this comprehensive guide, you'll learn just how powerful the combination of C# and .NET can be. Author Ian Griffiths guides you through C# 12.0 and .NET 8 fundamentals and techniques for building c...(244.53 zł najniższa cena z 30 dni)
244.43 zł
289.00 zł(-15%) -
Learn how to get started with Futures Thinking. With this practical guide, Phil Balagtas, founder of the Design Futures Initiative and the global Speculative Futures network, shows you how designers and futurists have made futures work at companies such as Atari, IBM, Apple, Disney, Autodesk, Luf...(149.95 zł najniższa cena z 30 dni)
149.85 zł
179.00 zł(-16%) -
Augmented Analytics isn't just another book on data and analytics; it's a holistic resource for reimagining the way your entire organization interacts with information to become insight-driven.Moving beyond traditional, limited ways of making sense of data, Augmented Analytics provides a dynamic,...(177.65 zł najniższa cena z 30 dni)
177.54 zł
219.00 zł(-19%) -
Learn how to prepare for—and pass—the Kubernetes and Cloud Native Associate (KCNA) certification exam. This practical guide serves as both a study guide and point of entry for practitioners looking to explore and adopt cloud native technologies. Adrián González Sánchez ...
Kubernetes and Cloud Native Associate (KCNA) Study Guide Kubernetes and Cloud Native Associate (KCNA) Study Guide
(169.14 zł najniższa cena z 30 dni)177.65 zł
199.00 zł(-11%) -
Python is an excellent way to get started in programming, and this clear, concise guide walks you through Python a step at a time—beginning with basic programming concepts before moving on to functions, data structures, and object-oriented design. This revised third edition reflects the gro...(142.99 zł najniższa cena z 30 dni)
142.49 zł
179.00 zł(-20%)
Dzieki opcji "Druk na żądanie" do sprzedaży wracają tytuły Grupy Helion, które cieszyły sie dużym zainteresowaniem, a których nakład został wyprzedany.
Dla naszych Czytelników wydrukowaliśmy dodatkową pulę egzemplarzy w technice druku cyfrowego.
Co powinieneś wiedzieć o usłudze "Druk na żądanie":
- usługa obejmuje tylko widoczną poniżej listę tytułów, którą na bieżąco aktualizujemy;
- cena książki może być wyższa od początkowej ceny detalicznej, co jest spowodowane kosztami druku cyfrowego (wyższymi niż koszty tradycyjnego druku offsetowego). Obowiązująca cena jest zawsze podawana na stronie WWW książki;
- zawartość książki wraz z dodatkami (płyta CD, DVD) odpowiada jej pierwotnemu wydaniu i jest w pełni komplementarna;
- usługa nie obejmuje książek w kolorze.
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka, którą chcesz zamówić pochodzi z końcówki nakładu. Oznacza to, że mogą się pojawić drobne defekty (otarcia, rysy, zagięcia).
Co powinieneś wiedzieć o usłudze "Końcówka nakładu":
- usługa obejmuje tylko książki oznaczone tagiem "Końcówka nakładu";
- wady o których mowa powyżej nie podlegają reklamacji;
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka drukowana
![Loader](https://static01.helion.com.pl/ebookpoint/img/ajax-loader.gif)
![ajax-loader](https://static01.helion.com.pl/ebookpoint/img/ajax-loader.gif)
Oceny i opinie klientów: Efficient Android Threading. Asynchronous Processing Techniques for Android Applications Anders Goransson (0)
Weryfikacja opinii następuję na podstawie historii zamówień na koncie Użytkownika umieszczającego opinię. Użytkownik mógł otrzymać punkty za opublikowanie opinii uprawniające do uzyskania rabatu w ramach Programu Punktowego.