Aidl is an interface profile used to implement RPC above the Android platform, which is automatically used by rules for IPC interfaces and objects at compile time, but as a user only needs to
Implement Interface 2 on the server side Bindservice onserviceconnected when the client gets the interface object, where the interface is the interface described in Aidl, the other details are aidl into the same name as the source file
There is an interface in which the method that is defined in the Aidl file is a stub that is the base class to be implemented on the service side, and a proxy for the relationship between them.
In essence, the AIDL function is to encapsulate the Binder's two methods: Binder.transact () and BINDER.ONTRANSCT () for use by the client side and server side, as it implements Transact () and The Ontransact () method is basically the same way, so you can use the template to generate the specific code, in theory, only need to generate transact () related code for the client side, generate Ontransact () code for the server is available,
There is something wrong with this article.
Android Aidl RPC mechanism