摘要
AIDL的解释是一种适用于接口描述的语言;在应用中编译器可以通过AIDL文件生成一段代码,通过预先定义的接口达到两个进程内部通信进程的目的。实际应用中如果需要在一个Activity中,访问另一个Service中的某个对象,需要先将对象转化成AIDL可识别的参数,然后使用AIDL来传递这些参数,在消息的接收端,使用这些参数组装成自己需要的对象。
AIDL is an interface description language; the compiler can generate a bit of code through the AIDL file, to achieve the two processes of internal communication process through a pre-defined interface to. If you need in a Activity, access to an object in another Service, need to put objects into a parameter,which can be identified by AIDL, and then use AIDL to transier these parameters, the message receiver, using these parameters are assembled into object to their needs.
出处
《信息技术》
2015年第7期193-194,198,共3页
Information Technology
关键词
代码
进程
参数
code
process
parameters