Focus on technology, enjoy life! --qq:804212028
Browse Links: http://blog.csdn.net/y18334702058/article/details/44624305
- Subject: Aidl Services
-aidl (Android Interface definition Language) is the Android interface definition language. There is no sharing of memory between processes in the Android system, so there are mechanisms that need to be provided for data communication between different processes. We know that 3 of the 4 Android application components (Activity, broadcast, and content Provider) can be accessed across processes, and another Android application component service is also available. As a result, this service that can be accessed across processes is referred to as the Aidl (Android Interface Definition Language) service.
Steps to establish a AIDL service
Establishing a AIDL service is more complex than building a common service, as follows:
(1) Create a file with the extension aidl in the Java package directory of the Eclipse Android project.
(2) If the contents of the Aidl file are correct, ADT will automatically generate a Java interface file (*.java).
(3) Set up a service class (subclass of Services).
(4) Implement the Java interface generated by the Aidl file.
(5) Configure the Aidl service in the Androidmanifest.xml file, especially note that the <action>
attribute value Android:name in the tag is the ID of the client to reference the service, which is the parameter value of the intent class.
Focus on technology, enjoy life! --qq:804212028
Browse Links: http://blog.csdn.net/y18334702058/article/details/44624305
Step by Step _android Development Course [11]_aidl Service Learning