How do I use AIDL tool from command line using SDK sample code?
It taked 3 hours useless search on google and 1,5 hours search on yandex. The solution is here:
http://programmingissues.wordpress.com/2011/07/22/cant-use-aidl-file-in-eclipse-android-project/
You need to add -p/path/to/framework.aidl key
You must provide the folder path to the source files, but WITHOUT the path after the base src folder. So, in your case the right command is:
C:\Android-project\ApiDemos\src\com\example\android\apis\app>aidl -IC:\Android-project\ApiDemos\src\ IRemoteService.aidl
As you mention, there isn't much documentation.
So if you enable verbose build output in Eclipse (under Window > Preferences > Android > Build, I think), you can see in the Console what commands, including aidl
and aapt
, are executed when the Eclipse plugin does a build.
Alternatively, if you can understand C you could check out the aidl source code in the AOSP.