Android interface definition language
client service
1、相同的aidl目录文件
2、服务器端配置为exported = true
3、客户端显式调用
4、序列化时,注意序列化和反序列对象的顺序
5、通过定义接口来延时返回数据
使用make文件编AIDL
LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-Iaidl-files-under, aidl)
LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/aidl
LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/app/src/main/aidl
LOCAL_SRC_FILES := $(call all-java-files-under, app/src/main/java) $(call all-Iaidl-files-under, app/src/main/aidl) \
app/src/main/aidl/com/yongyida/robot/motorcontrol/MotorController.aidl