Reading through the documentation - here is what I did (hopefully I
know what I am doing ;) )
"android.net.vpn.IVpnService" was able to find out source in
"frameworks/base/vpn/java/android.net.vpn/IVpnService.aidl" (Note the
*.aidl extension).
For IDL implementation (Android IDL aka aidl) there is no need to
"import" it in your code.
Looking at documentation at this URL
http://developer.android.com/guide/developing/tools/aidl.html#implementtheinterface
~~~~~~~~~~~~~~~~~~
To implement your interface, extend YourInterface.Stub, and implement
the methods. (You can create the .aidl file and implement the stub
methods without building between--the Android build process will
process .aidl files before .java files.)
Here is an example of implementing an interface called IRemoteService,
which exposes a single method, getPid(), using an anonymous instance:
// No need to import IRemoteService if it's in the same project.
private final IRemoteService.Stub mBinder = new IRemoteService.Stub(){
public int getPid(){
return Process.myPid();
}
}
~~~~~~~~~~~~~
In the above example the comment says "No need to import
IRemoteService if it's in the same project." Similarly since
IVpnService is in the same project - I believe we dont need to import
it.
I tried commenting the import statements and ran the build (using make
not eclipse) and the build was just fine.
If you find out anything different please post :)
> > > line 28 Java Problem- Hide quoted text -
>
> - Show quoted text -