Skip to content

What is AIDL

Devrath edited this page Feb 14, 2024 · 4 revisions

About AIDL

  • AIDL is called Android Interface Definition Language.
  • It acts as an interface between the server and the client.
  • Both server and client agree to communicate using this interface.

Why AIDL is necessary

  • In Android normally processes do not communicate with each other.
  • If we want the processes to communicate with each other, We need to convert the data to primitives that the operating system can understand and then communicate, It is complex --> The AIDL makes this process simple to achieve.

When to use AIDL

  • Any method defined in your service to be accessed simultaneously by more than one applications.
  • If you want to share the data from your application so that other applications access it.

The data types supported by AIDL

  • All the primitive types like int, char, boolean, long, and so on...
  • String
  • CharSequence
  • List<Supported data type>
  • Map<Supported data type>
  • Generic maps, such as Map<String,Integer> are not supported.
Clone this wiki locally