Step by Step _android Development Course [11]_aidl Service Learning

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.