Android 中AIDL的使用与理解

AIDL的使用:

最常见的aidl的使用就是Service的跨进程通信了,那么我们就写一个Activity和Service的跨进程通信吧。 
首先,我们就在AS里面新建一个aidl文件(ps:现在AS建aidl不要求和java包名相同了):

参考:https://blog.csdn.net/u011974987/article/details/51243539

前些日子终于写了一个demo,参考如下:

Demo总地址:https://github.com/lelelongwang/TestApp

AIDL的具体修改:https://github.com/lelelongwang/TestApp/commit/b6b1c2ccbe222bbdf626e5c7f0fe469915e2c811

  

我的GitHub:https://github.com/lelelongwang
原文地址:https://www.cnblogs.com/longjunhao/p/8932430.html