aidl笔记 2/5/2015


interface Test { //测试的接口
  void fun();

Stub 是一个Binder
class Stub extend Binder implements Test {
  public boolean onTransact(); //在onTransact里面调用fun()
}

Proxy
class Proxy implements Test {
  private android.os.IBinder mRemote; //拥有一个Binder的成员变量
  public void fun() {
    mRemote.transact();
  }
}

原文地址:https://www.cnblogs.com/superPerfect/p/4276081.html