Search code examples
androidaidl

how to create a file with .aidl extension?


I have following questions

  1. Do i need to create a simple file with .aidl extension ?
  2. I read that a corresponding .java file will be created, but in my case when i created a .aidl file;i couldn't find any such .java file
  3. is there any particular folder where i need to create this .aidl file.

Solution

  • Create a .aidl file for objects to be passed through IBinder. You should create the .aidl file in the same package as the Java object that it defines.

    Google Developer, Android Interface Definition Language (AIDL)