简体   繁体   中英

How to generate extenstion change .aidl to .java in Eclipse?

I know that Eclipse generate extenstion change [src/ ~.aidl] to [gen/ ~.java] automatic.

but, i want to know that how to generate extenstion change .aidl to .java automatic in detail.

Eclipse doesn't just change the file extension; it uses an Android SDK tool called aidl to create a whole Java class based on the information within the .aidl file.

There's documentation on the aidl format here and it is compiled to classes based on IBinder .

The source code for the aidl tool itself can be found here , but really the best way to understand exactly what it does is to look at one of the generated .java files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM