Advertisement
Books for developers
Search  
Always will be ready notify the world about expectations as easy as possible: job change page

Asynchronous Android Programming, 2nd Edition

Asynchronous Android Programming, 2nd Edition

Author: Helder Vasconcelos
Year: 2016
Format: PDF
Pages: 394
Views: 1440

2,49 MB
Description

Asynchronous programming has acquired immense importance in Android programming, especially when we want to make use of the number of independent processing units (cores) available on the most recent Android devices. With this guide in your hands you’ll be able to bring the power of Asynchronous programming to your own projects, and make your Android apps more powerful than ever before!

To start with, we will discuss the details of the Android Process model and the Java Low Level Concurrent Framework, delivered by Android SDK. We will also guide you through the high-level Android-specific constructs available on the SDK: Handler, AsyncTask, and Loader. Next, we will discuss the creation of IntentServices, Bound Services and External Services, which can run in the background even when the user is not interacting with it. You will also discover AlarmManager and JobScheduler APIs, which are used to schedule and defer work without sacrificing the battery life. In a more advanced phase, you will create background tasks that are able to execute CPU-intensive tasks in a native code-making use of the Android NDK. You will be then guided through the process of interacting with remote services asynchronously using the HTTP protocol or Google GCM Platform. Using the EventBus library, we will also show how to use the Publish-Subscribe software pattern to simplify communication between the different Android application components by decoupling the event producer from event consumer.

Finally, we will introduce RxJava, a popular asynchronous Java framework used to compose work in a concise and reactive way. Asynchronous Android will help you to build well-behaved applications with smooth responsive user interfaces that delight the users with speedy results and data that’s always fresh.

What You Will Learn

- Get familiar with the android process model and low-level concurrent constructs delivered by the Android SDK.
- Use AsyncTask and loader framework to load data in the background, delivering progress results in the meantime.
- Create services that interact with your activity without compromising the UI rendering.
- Learn the working of Android concurrency on the Native Layer.
- Interact with nearby devices over Bluetooth and WiFi communications channels.
- Create and compose tasks with RxJava to execute complex asynchronous work in a predictable way.
- Get accustomed to the use of the Android Loader construct to deliver up-to-date results.

Similar
Эффективное использование потоков в операционной системе Android
Автор: Ёранссон Андерс
Год: 2015
Страниц: 304
При написании действительно полезного и удобного приложения для Android без многопоточности никак не обойтись, но как узнать о технологиях и методиках, которые помогут решить такую задачу? Эта книга с практической точки зрения описывает несколько асинхронных механизмов, доступных в программной среде...
Concurrency in C# Cookbook
Автор: Stephen Cleary
Год: 2019
Страниц: 322
If you’re one of many developers still uncertain about concurrent and multithreaded development, this practical cookbook will change your mind. With more than 85 code-rich recipes in this updated second edition, author Stephen Cleary demonstrates parallel processing and asynchronous programming...
Pro Asynchronous Programming with .NET
Автор: Blewett R., Clymer A.
Год: 2013
Страниц: 336
Pro Asynchronous Programming with .NET teaches the essential skill of asynchronous programming in .NET. It answers critical questions in .NET application development, such as: how do I keep my program responding at all times to keep my users happy? how...
Асинхронное программирование в C# 5.0
Автор: Алекс Дэвис
Год: 2013
Страниц: 122
Средства асинхронного программирования - мощный механизм, добавленный в версию 5.0 языка программирования C#. Это произошло как раз в тот момент, когда производительность и распараллеливание вызывают всё более пристальный интерес у разработчиков программного обеспечения. При правильном использовании новые средства позволяют создавать...
Send message
Email
Your name
*Message


© 1999–2024 WebDynamics
1980–... Sergey Drozdov
Area of interests: .NET Framework | .NET Core | C# | ASP.NET | Windows Forms | WPF | HTML5 | CSS3 | jQuery | AJAX | Angular | React | MS SQL Server | Transact-SQL | ADO.NET | Entity Framework | IIS | OOP | OOA | OOD | WCF | WPF | MSMQ | MVC | MVP | MVVM | Design Patterns | Enterprise Architecture | Scrum | Kanban