aidl定义如下:
private final MyInterface.Stub mBinder = new MyInterface.Stub() {
@Override
public void fun() throws RemoteException {
throw new RemoteException("test");
}
};
在另一个进程中去调用:
try{
mService.fun();
}catch (RemoteException e) {
Log.e(TAG,"test", e);
}
这样做会报出如下的错误
Uncaught remote exception! (Exceptions are not yet supported across processes.)
因为Exceptions不能跨进程catch