I want to share the interface through AIDL with client applications. I get compile time errors. Code snippet: -
interface ChildListener extends ParentListener { public void onUpdate(Class1 c1); }
AIDL suite (all in one package) →
ChildListener.aidl . Contains the above code.
Class1.aidl . Declares Class1 as possible. The definition of class 1 is implemented in different ways.
ParentListener.aidl . Declares a ParentListener.
Errors →
I get compile-time errors (when compiling a service)
1. syntax error don't know what to do with "extends" 2. syntax error don't know what to do with "ParentListener "
It seems we cannot use inheritance in the AIDL interfaces? Or is it that I'm missing something here. Any pointers would be appreciated.
Best wishes
source share