Android Four Components service (AIDL) Android Interface Definition language

Source: Internet
Author: User
Android Interface Definition Language (aidl)

The following steps are required to establish an adjoining service using Aidl

  1. 1. Create a. aidl file

    This file uses the method signature to define the language interface

  2. 2. Implement this interface

    The Android SDK Tool uses the Java language to generate an interface based on your. aidl file This interface has an internal abstract class, called stub, which inherits the binder and implements your Aidl interface, you must inherit this stub class and implement these methods

  3. 3. Expose this interface to the client

    Implement a service and override the Onbind () method to return your stub implementation class

Android Four Components service (AIDL) Android Interface Definition language

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.