Android Services AIDL Server Part – 5
In this video, we are going to see – What is AIDL in android? AIDL stands for Android Interface Definition Language. It allows you to define the programming interface that both the client and service agree upon in order to communicate with each other using interprocess communication. The extension of AIDL file is “.aidl”.
– what is the use of aidl in android? When we want a class outside of your application’s process to access the Service. If you’re only using the service from inside your application, you can use a local service.
– aidl example in android
AIDL Interface – AIDL that Interfaces your applications. Example: Create the aidl file on your package as following (IRemote.aidl).
package com.example.android_additionservice;
interface IAdd{
add(int num1, int num2);
}