我想通过AIDL与客户端应用程序共享一个接口。我一直在编译时错误。代码段是: -是否可以在AIDL接口中使用继承?
interface ChildListener extends ParentListener {
public void onUpdate(Class1 c1);
}
AIDL集(所有在同一封装) - >
ChildListener.aidl - 包含上述代码。
Class1.aidl - 将Class1声明为parcelable。 Class1的定义实现了parcelable。
ParentListener.aidl - 声明ParentListener。
错误 - >
我收到编译时错误(编译时服务)
1. syntax error don't know what to do with "extends"
2. syntax error don't know what to do with "ParentListener "
看来,我们不能在AIDL接口使用继承?或者是我在这里失去了一些东西。任何指针将不胜感激。
最好的问候
有人遇到过这样的错误吗? – Robin 2011-12-15 10:28:17