Member-only story
What are AIDL and Messenger in android and their implementation?
6 min readFeb 19, 2023
Are both the same? what is the crucial difference between them?
You must have seen in-app billing for some applications, How do they transfer control and data to another application? Here the IPC mechanisms come into the picture. There are various ways for IPC and each has its own pros and cons.
AIDL/Messenger/Binder.
In this article, we will see the differences between AIDL and messenger, Implementation of AIDL . However, will talk about Binders some other day. : )
AIDL- Android Interface Definition Language.
- AIDL is a mechanism provided by Android to facilitate communication between different components of an Android application, which may be running in different processes. It allows developers to define a programming interface that other processes can use to interact with their service or component.
- AIDL generates a Java interface that both the client and the server implement, and the communication between them happens through method calls.
Messenger
- Messenger is a lightweight IPC mechanism that uses message passing to communicate between different processes in Android. In this mechanism, a Messenger is…