Android Binder Tutorial [Part Six]: Obtaining and using Java service.
Introduction. We previously introduced the process of registering Java Service. In this tutorial we look at how the application obtains and makes calls to the Java Service interface. AIDL. In the Java Services, the AIDL tool is often used. The explanation of AIDL in the google official document is: " AIDL (Android Interface Definition Language)" is similar to other IDLs you might have worked with. It allows you to define the programming interface that both .The client and service agree upon in order to communicate with each other using interprocess communication (IPC) . That is, AIDL is an interface description language used to define interfaces that are mutually agreed upon by client and service. It sounds more circumstantial and directly looks at the general contents of IWifiManger.aidl . This defines a series of function interfaces. An AIDL, in addition to Java primitive data (int, long, char, boolean, etc.), it also supports String, CharSeq