IPC
Course Summary
Fundamentals of Android Inter-process communications[top] Duration
1 day.
[top] Objectives
Understand and use Android IPC: bound services, Parcelables and AIDL including familiarity with Binder
[top] Audience
Experienced developers who are familiar with the Android application model and have some experience with RPC.
[top] Prerequisites
Android Bootcamp or equivalent; familiarity with RPC concepts.
[top] Outline
This module covers the fundamentals of the Android Inter-process communication based on the Binder. By the end of this module, you will understand how to create bound services, how to send parcels across the process lines, and how to make asynchronious binder calls. We will illustrate the key capabilities of the Android IPC menachism on a working example app that progressively becomes more and more sophisticated. Topics covered include the following:
- Parcelables and serialization
- Binder and IPC fundamentals
- Binding a service
- AIDL and publishing an API
- Creating and binding to a remote service
- Implementing client-side service connection
- The purpose of stubs and proxies
- Passing parcelable data between processes
- Making asynchronous binder calls